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.

# run the reporter
/opt/websafety-ui/bin/Traffic.Reporter/Traffic.Reporter \
     --product=ws --action=history \
     --config=/opt/websafety-ui/etc/traffic/reporter.json \
     >> "$LOGFILE" 2>&1

This script builds various traffic reports for the following durations:

  1. Real time report over the last 1000 records in the Squid access log.

  2. Daily traffic report for the previous days.

  3. Monthly traffic report for the previous months.

  4. Yearly reports.

These reports can later be viewed in Traffic Monitor / History like shown on the following screenshot. You can click on a given day, month and year.

../../_images/history2.png

Log of report generation and various report generation settings can be adjusted in Traffic Monitor / Log and Settings pages.

../../_images/log2.png ../../_images/settings2.png

Important

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.