WTFHosting
05-17-2001, 08:48 PM
I have a user that wanted logs for his site for the past several weeks. When he downloaded and unzipped the web.1.gz file, there was only stats for the last 7 days. My question is, is this normal, and what does the cobalt use to decide when to delete past logs?
Jason_Berresford
05-18-2001, 01:07 AM
Cobalts don't go off how many days, it goes off how large the files are.
RAQ2, and RAQ3s Rotate the logs whenever they reach 50 Megs, if a log file reaches that limit in one day, it will rotate it at the end of the day.
I imagin the RAQ4s are the same.
WTFHosting
05-21-2001, 09:18 PM
I do know they "rotate" the logs, with entails compressing the log file and starting a new one. However, when I uncompress the compressed log archive file only 7 days worth is available....so where'd they go? Or like before, what criteria does the RaQ use to discard old logs?
tymonhall
05-21-2001, 09:33 PM
Try checking /etc/logrotate.conf there you can change some dates. I think that is the master file, if you want to change files for just a site goto /etc/logrotate.d/site# I'm not 100% sure if this is right so make sure you make a backup of what ever you plan to change.