# urbestack-stats-update

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-stats-update [--name DOMAIN]
```

## Description

Updates web statistics from rotated access logs. The urbestack-stats.timer runs the command nightly after log rotation. By default, the command processes previously unread rotated logs for every domain with statistics enabled. Because it reads only rotated logs, each request is counted once, the night after it occurs.

The command generates fresh JSON reports for the full period since collection began and for each calendar month covered by the logs. Each report counts visitors that identify themselves as robots separately from other visitors.

The nightly run also reads the size of every database registered in UrbeStack from MariaDB and records it, even if web statistics are disabled. With --name, the command updates web statistics only for the specified domain, even if statistics are disabled for it, and skips database size updates.
