Re: Does Apache Support Piped Logs On Windows Platform

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

 



All,
  You can use mod_rotate to rotate the access logs, not the error logs though

***********************************************
Tony Guadagno
Guadagno Consulting
tonyg@xxxxxxxxxxxx
585.703.6700
***********************************************

>>> Sander Temme <sctemme@xxxxxxxxxx> 6/28/2007 12:38 PM >>>
Frank,

On Jun 28, 2007, at 9:22 AM, Frank Misa wrote:

> I've seen many references to Apache issues with logging to piped  
> processes on the forums;  but no clear answer on whether this is  
> supported or not.
> Can someone here please confirm -- Yes/No...
> Do the latest versions of Apache 2.0.x  OR Apache 2.2.x support  
> piped logs on Windows ?

Piped logs are currently effectively broken on Windows, due to the  
way we do or don't pass valid file descriptors to the called process  
for stdout and stderr.  Others more knowledgeable than myself can  
elucidate on this more eloquently than I can.

We're trying to fix it, but that hasn't happened so far.  If you want  
to rotate your log files, the best approach is currently to rename  
them and then send your httpd service a restart signal using

\path\to\httpd -n Apache2 -k restart

with the name of the Windows Service as argument to the -n  
parameter.  You can script this in any language that pleases you, and  
run it periodically in the Windows Scripting Host.

> >>SecAuditLog "|C:/Perl/bin/perl.exe C:/fmm/ApacheSSL224/bin/modsec- 
> auditlog-collector.pl"

I haven't reviewed mod_security to this extent but does it use the  
Apache logging APIs?  Or does it do its own thing?

S.

-- 
Sander Temme
sctemme@xxxxxxxxxx 
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Tony Guadagno
EMAIL;WORK;PREF;NGW:tonyg@xxxxxxxxxxxx
N:Guadagno;Tony
END:VCARD


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