After statistics generator prepared the CSV files as explained on the previous step, another script builds the actual data for traffic reports.
# run the reporter being websafety sudo -u websafety python3 /opt/websafety-ui/bin/reporter.py >> "$LOGFILE" 2>&1
This script builds various traffic reports for the following durations:
- Real time report over the last 1000 records in the Squid access log.
- Daily traffic report for the previous day.
- Monthly traffic report for the previous month.
- Yearly report.
These reports can later be viewed in UI / Traffic Monitor / History like shown on the following screenshot. You can click on a given day, month and year.
Log of report generation and various report generation settings can be adjusted in UI / Traffic Monitor / Log and Settings pages.