darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Obsolete statistics are no longer being deleted from the disk in v6.5. #153

Closed andreybrasil closed 7 years ago

andreybrasil commented 7 years ago

After upgrading from version 6.2-1 to 6.5, I realized that the obsolete statistics are no longer removed from the disk.

Anyone else experiencing this problem?

The squid-analyzer is invoked with this command-line in crontab:

/usr/local/bin/squid-analyzer --debug --preserve 4 --jobs 2 /squidfiles/logs/access.log.1

My debug output is:

Obsolete statistics before 2016-06 Generating statistics for day 2016-10-23 Mime type statistics in /reports/squidanalyzer/2016/10/23... User statistics in /reports/squidanalyzer/2016/10/23... Network statistics in /reports/squidanalyzer/2016/10/23... Top URL statistics in /reports/squidanalyzer/2016/10/23... Top denied URL statistics in /reports/squidanalyzer/2016/10/23... Top domain statistics in /reports/squidanalyzer/2016/10/23... Cache statistics in /reports/squidanalyzer/2016/10/23... Generating statistics for day 2016-10-24 User statistics in /reports/squidanalyzer/2016/10/24... Mime type statistics in /reports/squidanalyzer/2016/10/24... Network statistics in /reports/squidanalyzer/2016/10/24... Top URL statistics in /reports/squidanalyzer/2016/10/24... Top denied URL statistics in /reports/squidanalyzer/2016/10/24... Top domain statistics in /reports/squidanalyzer/2016/10/24... Cache statistics in /reports/squidanalyzer/2016/10/24... Generating statistics for month 2016-10 User statistics in /reports/squidanalyzer/2016/10... Mime type statistics in /reports/squidanalyzer/2016/10... Network statistics in /reports/squidanalyzer/2016/10... Top URL statistics in /reports/squidanalyzer/2016/10... Top denied URL statistics in /reports/squidanalyzer/2016/10... Top domain statistics in /reports/squidanalyzer/2016/10... Cache statistics in /reports/squidanalyzer/2016/10... Generating statistics for week 43 on year 2016 User statistics in /reports/squidanalyzer/2016/week43... Mime type statistics in /reports/squidanalyzer/2016/week43... Network statistics in /reports/squidanalyzer/2016/week43... Top URL statistics in /reports/squidanalyzer/2016/week43... Top denied URL statistics in /reports/squidanalyzer/2016/week43... Top domain statistics in /reports/squidanalyzer/2016/week43... Cache statistics in /reports/squidanalyzer/2016/week43... Generating statistics for week 44 on year 2016 User statistics in /reports/squidanalyzer/2016/week44... Mime type statistics in /reports/squidanalyzer/2016/week44... Network statistics in /reports/squidanalyzer/2016/week44... Top URL statistics in /reports/squidanalyzer/2016/week44... Top denied URL statistics in /reports/squidanalyzer/2016/week44... Top domain statistics in /reports/squidanalyzer/2016/week44... Cache statistics in /reports/squidanalyzer/2016/week44... Generating statistics for year 2016 User statistics in /reports/squidanalyzer/2016... Mime type statistics in /reports/squidanalyzer/2016... Network statistics in /reports/squidanalyzer/2016... Top URL statistics in /reports/squidanalyzer/2016... Top denied URL statistics in /reports/squidanalyzer/2016... Top domain statistics in /reports/squidanalyzer/2016... Cache statistics in /reports/squidanalyzer/2016... DEBUG: generating HTML output took:14290 wallclock secs ( 1.23 usr 0.51 sys + 17062.53 cusr 427.29 csys = 17491.56 CPU) DEBUG: total execution time:14635 wallclock secs ( 1.25 usr 0.56 sys + 17417.29 cusr 443.60 csys = 17862.70 CPU)

darold commented 7 years ago

Hi,

Thanks for the report. Please use latest development code, commit e71f269 might solves this issue.

andreybrasil commented 7 years ago

It worked! Thank you! :)