How to configure log rotations for webserver ?

Questions by kirankumar samudrala   answers by kirankumar samudrala

Showing Answers 1 - 3 of 3 Answers

Madhu

  • Nov 2nd, 2013
 

Open the file D:IBMihsconf httpd.conf

Find the first occurrence of CustomLog logs/access.log common? and comment it. Then, add the following line: Custom

Log "|D:/IBM/ihs/bin/rotatelogs.exe D:/IBM/ihs/logs/access.log 50M"
common You can configure rotation by size or by time. In this configuration I used a rotation on 50Mb of log size.

For example, if you want to rotate it weekly use the following: CustomLog "|D:/IBM/HTTPServer/bin/rotatelogs.exe -l D:/IBM/HTTPServer/logs/access.log 604800" common Finally, restart IBM HTTP server 6.1€? and IBM HTTP Administration 6.1? services.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions