How can I rotate my access.log file using httpd.conf on IHS?
![]()
I'm trying to rotate my access.log file on my IHS server which has grown to 5GB+ lately. Problem is no matter what syntax I use in httpd.conf it just doesn't work. For testing purposes, I tried to rotate it every 60 seconds in the following three examples:
Example #1:
CustomLog "|\"C:/Program Files/IBM/HTTPServer/bin/rotatelogs.exe\" \"C:/Program Files/IBM/HTTPServer/logs/access.log\" 60" common
Example #2:
CustomLog "|\”C:/Program Files/IBM/HTTPServer/bin/rotatelogs.exe\” logs/access.log 60" common
Example #3:
CustomLog "|C:/Program\ Files/IBM/HTTPServer/bin/rotatelogs.exe logs/access.log 60" common As far as I can tell the syntax appears correct as I can see that rotatelogs.exe script (two even) started in task manager. There are no errors reported in the error.log file when I start the HTTP server. I'm doing this in Windows 2008 R2 where I have WebSphere 7.0.0.23 installed. Has anyone experienced a similar issue? Any recommendations? |
4 answers
![]()
I have following statement in my httpd.conf on my CLM server on
- Windows 2008-R2 - IHS 8.0.0.6 ErrorLog "|bin/rotatelogs.exe C:/logs/HTTPServer/error_%Y_%m_%d_%H_%M_%S.log 86400" CustomLog "|bin/rotatelogs.exe C:/logs/HTTPServer/access_%Y_%m_%d_%H_%M_%S.log 86400" common |