[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Customizing httpd access logs
- Subject: Re: [cobalt-users] Customizing httpd access logs
- From: Jay Summers <jay@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed Apr 4 19:45:06 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>> On a different Linux distribution, the httpd access logs were separated by
>> domain. Each virtual domain has it's own access-log and I could set up
>> logrotate to handle each log differently.
>>
>> The Cobalt Raq3i machines that I have all have a combined access log. I'd
>> like to adjust how logrotate handles log for individual domains, but I can't
>> since the log is combined.
>>
>> My goal is to have the logs for a single domain rotate daily instead of by
>> size (1M as it is now). Then I'd like it to compress and mail the log to an
>> e-mail address I specify.
> There is a routine that already does this on the RaQ3 and RaQ4. If you look in
> /etc/logrotate.d/apache you can see that logrotate daily runs
> /usr/local/sbin/split_logs web < /var/log/httpd/access to split the combined
> log for each domain. These logs, stored in /home/sites/siteNNN/logs/web.log
> are then rotated as configured in /etc/logrotate.d/siteNNN
>
> If you want to change this behaviour, you just have to modify the files in
> logrotate.d to rotate at a larger size, or remove that and have them rotate at
> a specified interval, "man logrotate" will help you with this.
Just wanted to add that any changes made in /etc/logrotate.d should be
copied over to logrotate.onboot also.
The GUI will also rewrite the config files if changes are made to the site
quota. Found this one out the hard way. Can you say, "Bye bye to half a
months web stats" ? ;-\
HTH,
j