Add run-analysis helper script and tests

This commit is contained in:
Jordan Wages 2025-07-19 02:19:08 -05:00
commit 2e7e75e4ce
3 changed files with 77 additions and 0 deletions

View file

@ -87,6 +87,17 @@ Use the `run-reports.sh` script to run all report intervals in one step. The scr
Running this script will create or update the hourly, daily, weekly and monthly reports under `output/`. It also detects all unique domains found in the database and writes per-domain reports to `output/domains/<domain>/<interval>` alongside the aggregate data. After generation, open `output/index.html` in your browser to browse the reports.
## Log Analysis
The `run-analysis.sh` script runs helper routines that inspect the database. It
creates or reuses the virtual environment and then executes a set of analysis
commands to spot missing domains, suggest cache rules and detect potential
threats.
```bash
./run-analysis.sh
```
## Serving Reports with Nginx
To expose the generated HTML dashboards and JSON files over HTTP you can use a