SARG-REPORTS(1) | General Commands Manual | SARG-REPORTS(1) |
sarg-reports - Daily/Weekly/Monthly squid usage reports creation tool
sarg-reports [OPTIONS]
This manual page documents briefly the sarg-reports command.
sarg-reports is a script written to automate the SARG (a powerful squid log analyzer) reports and log management. Sarg itself, provide to end user a generic interface to create reports based on squid access log (begin of log to current date). sarg-reports is useful because it allow you to easly create and manage Daily, Weekly and Monthly reports.
A summary of options is included below.
If you want the reports can be generated automatically insert the following lines (the today report creation time depend mostly of your sarg server load average, tune it):
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
00 08-18/1 * * * sarg-reports today
00 00 * * * sarg-reports daily
00 01 * * 1 sarg-reports weekly
30 02 1 * * sarg-reports monthly
REMEMBER: if you use logrotate, configure it to retain enough logs to ensure availability of data for the longest period for which you need a report. Log rotation frequency is unimportant. See https://sourceforge.net/p/sarg/wiki/Keeping%20enough%20log%20to%20process/ This version of sarg-reports will use the log file defined in sarg.conf and also prior log files which have been rotated out of that location.
Check before using the sarg-reports that the following variables are set to file /etc/sarg/sarg-reports.conf
sarg-reports was written by Ugo Viti <ugo.viti@initzero.it>
This manual page was written by Juan Angulo Moreno <juan@apuntale.com>, for the Debian project (but may be used by others).
May 17, 2008 |