Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apache Log Weirdness



This is what I put in httpd_macosxserver.conf under one of the virtual sites to get it to role every five days

CustomLog ' | "/usr/sbin/rotatelogs" "/private/var/log/httpd/sitename_access_log" 432000' "%{PC-Remote-Addr}i %l %u %t \"%r\" %>s %b"
ErrorLog ' | "/usr/sbin/rotatelogs" "/private/var/log/httpd/sitename_error_log" 432000'

The /etc/periodic/daily/500.daily is set by default to clean them out every 7 days from the /var/log/httpd directory. You can insert your own scripts here and there is a /etc/defaults/periodic.conf file for configuring every thing. I've been finding this stuff out the hard way, I don't know where to look for documentation.

On Saturday, May 31, 2003, at 12:08 America/Los_Angeles, Bill Lamb wrote:
clip

I've been rolling them daily just to make it easier for me to keep tabs on
things here at the beginning. I'll switch to weekly shortly.

But working with the logs is very difficult. I've not been able to get the
system to automatically delete the rotated log files after three days,
though I think I've followed the instructions in the manual correctly. And
working with the files themselves if made more difficult since they are
owned by the System, even if I choose to save them in my home folder. Doing
an "rm -i *" on the files myself is a bit of a pain.

Ideally, I want the logs to roll to a folder of my choosing with me having
read/write access to them, allowing me to deal with them at leisure. Then I
could delete them or have them disappear after three days.
clip
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >Apache Log Weirdness (From: Bill Lamb <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.