Per-domain Nginx log analytics with hybrid static reports and live insights.
Find a file
2025-07-17 23:27:10 -05:00
scripts Fix incremental log import 2025-07-17 23:27:10 -05:00
templates Update requirements and AGENTS instructions 2025-07-17 00:17:46 -05:00
.gitignore Update requirements and AGENTS instructions 2025-07-17 00:17:46 -05:00
AGENTS.md Update requirements and AGENTS instructions 2025-07-17 00:17:46 -05:00
init.sh seeding with initial scripts. 2025-07-16 23:38:42 -05:00
LICENSE Initial commit 2025-07-16 22:42:28 -05:00
README.md Update requirements and AGENTS instructions 2025-07-17 00:17:46 -05:00
requirements.txt Update requirements and AGENTS instructions 2025-07-17 00:17:46 -05:00
run-import.sh seeding with initial scripts. 2025-07-16 23:38:42 -05:00

ngxstat

Per-domain Nginx log analytics with hybrid static reports and live insights.

Generating Reports

Use the generate_reports.py script to build aggregated JSON and HTML files from database/ngxstat.db.

Create a virtual environment and install dependencies:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Then run one or more of the interval commands:

python scripts/generate_reports.py hourly
python scripts/generate_reports.py daily
python scripts/generate_reports.py weekly
python scripts/generate_reports.py monthly

Reports are written under the output/ directory. Each command updates the corresponding <interval>.json file and produces an HTML dashboard using Chart.js.