LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   squid server maintenance (https://www.linuxquestions.org/questions/linux-newbie-8/squid-server-maintenance-611897/)

shipon_97 01-07-2008 10:43 PM

squid server maintenance
 
Dear Friends ,

I have configured two Proxy (squid) server .
I just configure it using the default settings before 6 months ago .Here I just enable cache log and access log facility in squid.conf file.

Now I need urs suggestion , is there need any maintenace in the proxy server Like , clear cache log or access log etc ?Becuase i know that cache log takes space in the HDD . so that i think it needs to be cleared . Am i right ? Plz help me ....

esaym 01-08-2008 10:29 AM

logs are usually taken care of by logrotate

contents of /etc/logrotate.d/squid/:

Code:

/var/log/squid/access.log {
    weekly
    rotate 4
    copytruncate
    notifempty
    missingok
    nocompress
}
/var/log/squid/cache.log {
    weekly
    rotate 4
    copytruncate
    compress
    notifempty
    missingok
    postrotate
      /usr/local/squid/bin/squid -k rotate
    endscript
}

That will rotate the log weekly and keep 4 weeks worth of back logs. For a network with several people on it you might want to rotate it daily.


All times are GMT -5. The time now is 05:14 PM.