Report Builder

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/ >> "$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 day.
  3. Monthly traffic report for the previous month.
  4. 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.

../../_images/log1.png ../../_images/settings1.png