LightSquid Logs Location and Refresh Issue Solution
-
Hi All
I recently updated two of my pfSense firewalls to the latest lightsquid package and had a couple of issues.
My Setups:
pfSense 2.0.1-RELEASE
squid 2.7.9 pkg v.4.3.1
lightsquid 1.8.0 pkg v.2.32Firstly the directory where the log files need to be stored for lightsquid to pick them up has changed from /var/squid/log to /var/squid/logs.
This can easily be fixed by changing the logging directory on Services –> Proxy Server --> General --> Log store directory to var/squid/logs.
Alternatively a link can be created to point the /var/squid/logs to /var/squid/logln -s /var/squid/log /var/squid/logsSecondly I noticed on both machines that lightsquid was not longer refreshing with the latest proxy usage stats.
To fix this you need to add/modify a job in the crontab. The easiest way to do this is to install and use the Cron package.
In the crontab (Can be viewed from Services –> Cron if installed) you will see two lines which should do the lightsquid refreshing but currently they are not working.*/60 * * * * root /usr/bin/perl /usr/local/www/lightsquid/lightparser.pl today 15 0 * * * root /usr/bin/perl /usr/local/www/lightsquid/lightparser.pl yesterdayEither modify the first line by removing the 'today' part on the end of the line or create a new line:
*/60 * * * * root /usr/bin/perl /usr/local/www/lightsquid/lightparser.plThis will resolve the refreshing issue.
-
Thanks Tram.
That worked for me :)
Couldn't get sarg to work so this will do in the interim. -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy