Add cron-friendly report generation script

This commit is contained in:
Jordan Wages 2025-07-18 00:15:36 -05:00
commit e19138bc1a
2 changed files with 42 additions and 0 deletions

View file

@ -38,3 +38,14 @@ The importer handles rotated logs in order from oldest to newest so entries are
processed exactly once. If you rerun the script, it only ingests records with a
timestamp newer than the latest one already stored in the database, preventing
duplicates.
## Cron Report Generation
Use the `run-reports.sh` script to run all report intervals in one step. The script sets up the Python environment the same way as `run-import.sh`, making it convenient for automation via cron.
```bash
./run-reports.sh
```
Running this script will create or update the hourly, daily, weekly and monthly reports under `output/`.