Closed Gill-Bates closed 3 years ago
This file is use to store information about the last line parsed by SA. If you don't have new report on second run this is because there is no new entry in your log. Do not remove this file unless you want to recreate the reports. You can use option -d to see what squid-analyzer is doing.
I cannot confirm that there is no new entry in the log. The last manual run works great:
As you can see, there is no update
Hi,
some guidance on Debian systems :
LogFile /var/log/squid/access.log
/var/log/squid/*.log {
daily
compress
delaycompress
rotate 5
missingok
nocreate
sharedscripts
prerotate
test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports daily
endscript
postrotate
test ! -e /var/run/squid.pid || test ! -x /usr/sbin/squid || /usr/sbin/squid -k rotate
/usr/local/bin/squid-analyzer -d -l /var/log/squid/access.log.1
endscript
Documentation updated wit your example. Thanks.
When I freshly install SquidAnalyzer on Debian Buster and run the following command:
/usr/local/bin/squid-analyzer > /dev/null 2>&1
If the report is built successfully. If I repeat the command, the Squid Report will not be updated.
As I can see, after running the command follwing file appear:
SquidAnalyzer.current
Why do I need this file? The existence of this file prevents the report from being updated. If I delete it, the report creation works again.