Summary: | Access log not working when piped to rotatelogs.exe | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Lac Sedivy <apache> |
Component: | Core | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | khurrams, sami.tikka |
Priority: | P3 | ||
Version: | 2.0.44 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Lac Sedivy
2003-01-24 13:54:16 UTC
Confirming. Several causes for this, mostly revolving around the otherchild logic (code that is *supposed* to make external processing more robust.) Hopefully a patch within a day, and this may get into 2.0.45 soon. Look in Bug# 17055, a quick fix is to set loglevel to ABOVE warn, the app error will not happen. I try to set log level to above warn, but this not resolve the problem. Indeed, LogLevel directive apply to error logs and this rotating problem occurs for all kind of logs, so this quick fixes can't work in this case. However, i look in Bug# 17055 and i agree with you when you show that readwrite.c is a source of problems. Confirming. The bug happens with both standard rotatelogs.exe and a custom application I am using for the same job. Error log works, access log does not. installed apache 2.0.45 and still can't use the rotatelogs program. the error reads: unable to start piped log program 'bin/rotatelogs logs/access_%Y_%b_%d.log 61': The system cannot find the path specified. Unable to open logs. Any ideas when it's going to be fixed. thanks, This is working fine for me (2.0.45 on Win2000) Using following command: CustomLog "|c:/apache2/bin/rotatelogs.exe c:/apache2/logs/access.%Y-%m-%d 604800" combined Thank you very much for the quick reply. The path that i am using has spaces in it: "C:/Program Files/Apache Group/Apache2/bin", and the spaces could be the problem; what can i do to overcome it. Thanks, This work for me with Apache 2.0.45, W2k and spaces in the path. CustomLog "|\"C:/Program Files/Strategies/WebServer/apache/bin/cronolog.exe\" \"C:/Program Files/Strategies/WebServer/apache/logs/access.%Y-%m-%d.log\"" common Seems, this one is fixed already. |