Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    LightSquid Logs Location and Refresh Issue Solution

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 6.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craibo
      last edited by

      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.32

      Firstly 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/log

      ln -s /var/squid/log /var/squid/logs
      

      Secondly 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 yesterday
      
      

      Either 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.pl
      
      

      This will resolve the refreshing issue.

      1 Reply Last reply Reply Quote 0
      • N
        NiallCon
        last edited by

        Thanks Tram.
        That worked for me :)
        Couldn't get sarg to work so this will do in the interim.

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          @NiallCon:

          Couldn't get sarg to work so this will do in the interim.

          why not?  ???

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.