LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2009, 08:29 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
how long are the squid logs kept for?


how long are the squid logs kept for?
I have heard about some automated process that deletes them after a while but don't want this to happen yet. troglocate or something
 
Old 08-10-2009, 09:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
logrotate covers squid logs among many many others. check the configs in /etc/logrotate.conf and /etc/logrotate.d/* but generally they would typically rotate once a week, keeping 4 old logs at one time.
 
Old 08-10-2009, 09:34 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie View Post
logrotate covers squid logs among many many others. check the configs in /etc/logrotate.conf and /etc/logrotate.d/* but generally they would typically rotate once a week, keeping 4 old logs at one time.
seems to say this:
Code:
# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create
So every 4 weeks a new log file is created?
Does the old one get deleted?
 
Old 08-10-2009, 09:45 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,121

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Please see man logrotate
 
Old 08-10-2009, 10:09 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
rotate 4 means that it will, as the comment says, keep 4 old logs. the fact that it is done once a week is defined by the "weekly" directive, which will be somewhere else in the file.
 
  


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
squid logs analyzer adam_blackice Linux - Server 5 04-01-2009 04:06 AM
Accessing Squid logs jonnoc Linux - General 2 01-16-2008 08:33 AM
NMBD becomes dumb? Looking at logs to long. jschiwal General 2 02-15-2006 03:48 AM
Squid is running but my logs are not being written Dagman Linux - Software 5 07-13-2004 08:12 AM
Squid and rotating logs using crond 80s Linux - Software 0 02-21-2003 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

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
Open Source Consulting | Domain Registration