LogFormat "%a/%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ip-host-combined
# don't log (RSS) requests from FeedBurner SetEnvIfNoCase Remote_Host "fetch.feedburner.com" dontlog # don't log MSN search bots SetEnvIfNoCase Remote_Host ".+\.search.live.com" dontlog # don't log Yahoo! search bots SetEnvIfNoCase Remote_Host ".+\.crawl.yahoo.net" dontlog # don't log Google search bots SetEnvIfNoCase Remote_Host ".+\.googlebot.com" dontlog SetEnvIfNoCase Request_URI "^/robots\.txt$" dontlog SetEnvIfNoCase Request_URI "^/favicon\.ico$" dontlog CustomLog logs/access_ip-host-combined.log ip-host-combined env=!dontlog#CustomLog "|bin/rotatelogs logs/access_ip-host-combined.%Y-%m-%d-%H-%M-%S.log 2592000 -480" ip-host-combined env=!dontlog
Do I add a customlog pipe to rotatelogs IN ADDITION to existing log directives, or are they meant to replace the existing? This is one of the things the docs fail to specify. Another issue: what if I want an archived file of the form access_yyyy_mm-dd.LOG, as opposed to the example in the docs which shows the date-stamp BEING the extension? Does the parsing of rotatelogs allow such a variant?
Has anyone experimented with rotatelogs enough to know the answers to these questions?
Mark --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx