Log file rotation, log file naming conventions
(1)
I set up several sites in SA with enabled logging, but have the problem that log files are growing indefinitely when there is no webstat software.
Is there a way in configuration files to set up something like "archive logs each seven days, rotate (in the meaning of delete) the oldest log after two archive cycles" ? Or more simpler clear the log file as soon as it reaches a given size ?
(2)
Is it safe for my webstat software when it deletes the access and error log files after processing it ? Or should the files itself be kept ?
I ask this, because on an other server OS I noticed when deleting the access_log file, for example, the server stops logging overall. So not sure how it is here.
(3)
I noticed that archived logs are named like "access_log.1162166400" - can someone explain the mysterious number added ? Seconds (since when) ? I had imagined a date stamp or anything like that, but that seems not to be the case.
I set up several sites in SA with enabled logging, but have the problem that log files are growing indefinitely when there is no webstat software.
Is there a way in configuration files to set up something like "archive logs each seven days, rotate (in the meaning of delete) the oldest log after two archive cycles" ? Or more simpler clear the log file as soon as it reaches a given size ?
(2)
Is it safe for my webstat software when it deletes the access and error log files after processing it ? Or should the files itself be kept ?
I ask this, because on an other server OS I noticed when deleting the access_log file, for example, the server stops logging overall. So not sure how it is here.
(3)
I noticed that archived logs are named like "access_log.1162166400" - can someone explain the mysterious number added ? Seconds (since when) ? I had imagined a date stamp or anything like that, but that seems not to be the case.
Mac OS X (10.4.8)