LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how long are the squid logs kept for? (https://www.linuxquestions.org/questions/linux-software-2/how-long-are-the-squid-logs-kept-for-746433/)

qwertyjjj 08-10-2009 08:29 AM

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

acid_kewpie 08-10-2009 09:25 AM

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.

qwertyjjj 08-10-2009 09:34 AM

Quote:

Originally Posted by acid_kewpie (Post 3637889)
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?

tredegar 08-10-2009 09:45 AM

Please see man logrotate ;)

acid_kewpie 08-10-2009 10:09 AM

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.


All times are GMT -5. The time now is 12:26 PM.