httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Peelman" <>
Subject Re: [users@httpd] Re: piping logs in apache2.2 on windows 2003/XP
Date Tue, 23 Jan 2007 23:25:25 GMT
----- Original Message ----- 
From: sai koduri 
Sent: Tuesday, January 23, 2007 12:18 PM
Subject: [users@httpd] Re: piping logs in apache2.2 on windows 2003/XP

Does anybody know how we can use  rotatelogs.exe to pipe logs for every day ???

Does any flags need to be turned on or do I need to include any modules?????


1) first try using full path to rotatelogs.exe and full path to the log file(s) in question.
2) I had no luck with relative paths... see rule 1. ;)


main server error log:
ErrorLog "|full:/path/to/apache2/bin/rotatelogs.exe full:/path/to/apache2/logs/master_error(%m-%d-%Y_%H-%M-%S).log

will create a new error log named 'master_error(mm-dd-year_00-00-00).log' every day (86400
= seconds in a day).

CustomLog "|full:/path/to/apache2/bin/rotatelogs.exe full:/path/to/apache2/logs/master_access(%m-%d-%Y_%H-%M-%S).log
86400" common

will create same for the main access log but using the 'common' LogFormat nickname if setup.

The above two I use in my main server configuration but the same goes for VirtualHosts.  I
use the same for all three of my vhosts and it seems to work fine. Just be prepared to see
a bunch of rotatelogs.exe processes if your on Win32. I count a total of 30 processes on my
system right now.


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message