LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2008, 11:43 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
Smile 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 ....
 
Old 01-08-2008, 11:29 AM   #2
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
server maintenance thisObject General 2 11-11-2006 03:42 AM
Server Maintenance ballistic509 Debian 5 09-21-2006 08:53 AM
Preventive Maintenance for Linux server xmdms Linux - Enterprise 2 08-24-2006 02:23 AM
Regular Server Maintenance gmitchell Linux - Networking 1 06-06-2005 02:07 AM
Linux Server Maintenance JJX Linux - General 2 06-08-2004 04:18 PM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration