A small program for web hosts, or self hosters, that reads TOML config files, generates reports with GoAccess, and emails them to config'd recipients. The user can schedule with cron, systemd-timers, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
994 B

#name of the site. can company name, domain, whatever makes the most sense.
[site1]
#webserver log location.
log-file = "/var/www/www-logs/site1-access.log"
#where to save the report and how to name it.
output = "/home/myuser/.goaccess_reporter/site1-report.html"
#append date to report name. This prevents overwriting existing reports. IDK if i even tested with "append-date = false".
append-date = true
#delete saved report.html after tarballing and emailing it.
delete-after = true
#array/seq of email addresses to send the report to.
email-addresses = ["jack@site1.org", "jill@site1.org"]
[site2]
log-file = "/var/www/www-logs/site2-access.log"
output = "/home/myuser/.goaccess_reporter/site2.html"
append-date = true
delete-after = false
email-addresses = ["john@site2.com", "jane@site2.com"]
[site3]
log-file = "/var/www/www-logs/site3-access.log"
output = "/home/myuser/.goaccess_reporter/site3-report.html"
append-date = true
delete-after = true
email-addresses = ["admin@site3.org"]