httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Castro" <a...@neteller.com>
Subject RE: [users@httpd] Re: piping logs in apache2.2 on windows 2003/XP
Date Tue, 23 Jan 2007 23:47:26 GMT
If by "every day" you mean to have a daily rotation for certain log
files, then you do that by specifying the number of seconds rotatelogs
will wait before rotating the log.  

In the examples below, 86400 is the value in seconds which is equivalent
to 24 hours:

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

I am not 100% certain about this but I don't think you need to include
any other modules just make sure you have the rotatelogs executable.  In
my experience this has been the case.


Alex

-----Original Message-----
From: Norman Peelman [mailto:npeelman@cfl.rr.com] 
Sent: Tuesday, January 23, 2007 4:25 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Re: piping logs in apache2.2 on windows
2003/XP

----- Original Message -----
From: sai koduri
To: users@httpd.apache.org
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?????

Thanks
sai



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. ;)

examples:

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 86400"

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.

Norm
---


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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message