Re: Re: piping logs in apache2.2 on windows 2003/XP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- 
From: sai koduri 
To: users@xxxxxxxxxxxxxxxx 
Sent: Tuesday, January 23, 2007 12:18 PM
Subject:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux