Add cron-friendly report generation script
This commit is contained in:
parent
cb4ab29045
commit
e19138bc1a
2 changed files with 42 additions and 0 deletions
11
README.md
11
README.md
|
@ -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/`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue