Report Builder
After statistics collector prepared the SQLite files as explained in the previous article, another script builds the actual HTML and JSON data for traffic reports.
/opt/websafety-ui/bin/reporterd \
--product=ws \
--action=history \
--config=/opt/websafety-ui/etc/traffic/reporter.json \
>> "$LOGFILE" 2>&1
This script builds various traffic reports for the following duration:
- Real time report over the last 1000 records in the Squid access log.
- Daily traffic report for the previous days.
- Monthly traffic report for the previous months.
- Yearly reports.
These reports can later be viewed in Admin 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 Traffic Monitor / Log and Settings pages.
Note
If free space on the hard disk is rapidly consumed by the statistics and reporting, try ignoring more entries from the access log when generating reports. As final resource you can disable statistics collection and report generation completely.