hi,
My access_log file of IBM HTTP Server under WAS has grown to a very large size: around 700 MB. I have tried using rotatelogs to generate new logs files on weekly basis.
But, I have encountered certain issues here:
1. I have maintained the default rotating logic i.e. "CustomLog "|/opt/IBMHTTPD/bin/rotatelogs /opt/IBMHTTPD/logs/access_log 604800" common" , but this does not generate new access_log.nnnn file if the webserver does not get http requests for a long time during this time frame. Hence, 604800 secs appears as a misguiding time frame.
2. I have also tried using access_log.%d-%b-%Y-%H-%M 86400" common. This means it should generate access_log file by the name - access_log.30-Apr-2004-00-00, but it does not. It generates file name as access_log.%d-%b-%Y-%H-%M, which is wrong. Is there something I am missing here.
3. I cannot restart the HTTP Server to generate new log files, which appeared as the solution on various websites.
Can somebody provide me with the correct solution to generate the access_log files with correct distinguishing names after certain time intervals using rotatelogs
This is actually urgent !!
Regards,
anuptosh
My access_log file of IBM HTTP Server under WAS has grown to a very large size: around 700 MB. I have tried using rotatelogs to generate new logs files on weekly basis.
But, I have encountered certain issues here:
1. I have maintained the default rotating logic i.e. "CustomLog "|/opt/IBMHTTPD/bin/rotatelogs /opt/IBMHTTPD/logs/access_log 604800" common" , but this does not generate new access_log.nnnn file if the webserver does not get http requests for a long time during this time frame. Hence, 604800 secs appears as a misguiding time frame.
2. I have also tried using access_log.%d-%b-%Y-%H-%M 86400" common. This means it should generate access_log file by the name - access_log.30-Apr-2004-00-00, but it does not. It generates file name as access_log.%d-%b-%Y-%H-%M, which is wrong. Is there something I am missing here.
3. I cannot restart the HTTP Server to generate new log files, which appeared as the solution on various websites.
Can somebody provide me with the correct solution to generate the access_log files with correct distinguishing names after certain time intervals using rotatelogs
This is actually urgent !!
Regards,
anuptosh