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/
125 stars 36 forks source link

Multiple squidGuard log files #180

Closed mikolajkrupa closed 6 years ago

mikolajkrupa commented 6 years ago

Hi, less of an issue and more of a question as I can't get it right. Basically I have multiple logs from squidGuard that I would like the engine to parse but it doesn't work even after doing comma seperated list (as said in the documentation). Here's the error I'm getting after I start the script: "ERROR: you must give a valid path to the Squid log file." And here's how my config line looks like: "LogFile /var/log/squidGuard/warezaccess, /var/log/squidGuard/downloadaccess" I also tried variations of it, more spaces between the comma, just spaces between log file's path etc. Everything is met with same error as above.

Thanks for great tool & hope it's just me not understanding well why it doesn't work.

darold commented 6 years ago

Hi,

Sorry for the response delay. The error you have only happen if SquidAnalyzer can not read the given files, are you running squid-analyzer as root or with a user with enough privilege? I have added the filename that SquidAnalyzer is trying to read in the error message with last commit a8e6037. This will show you what it is trying to read.

Regards