Hi I tried this option. But it is working differently then what i am thinking for. I did follwoing entries in my httpd.conf file. CustomLog "|/appl/apache/bin/rotatelogs /appl/apache/logs/mod_jk.log 5M" common CustomLog "|/appl/apache/bin/rotatelogs /appl/apache/logs/SMLOG.txt 5M" common CustomLog "|/appl/apache/bin/rotatelogs /appl/apache/logs/access_log 5M" common And cleared or made the above logfiles zero byte in logs folder. Started the apache daemon. Hence, right now, as my logs were of zero size, and cannot be 5M in a minute or two as there is noone to access any site, still my logs got rotated in the beginning itself. And, after that, when i tried accessing the URL, apache started logging into both the log files simultaneously. Mean, the logs started getting registered in original logfile as well as rotated logfile. Below is the example. 338 Feb 8 03:32 mod_jk.log 92 Feb 8 03:33 mod_jk.log.1139387580 92 Feb 8 03:33 access_log.1139387580 92 Feb 8 03:33 access_log 92 Feb 8 03:33 SMLOG.txt.1139387580 4 Feb 8 03:37 httpd.pid 241023 Feb 8 03:37 error_log 5919 Feb 8 03:37 SMLOG.txt ----------------------------------------------------------- I need something like, logs should get registered into original files only. And, once the 5M limit is reached, it should get rotated. So that i can remove the rotated logfiles periodically. Kindly, provide your suggestions. Thanks Nehal -----Original Message----- From: Schaudt, Oliver [mailto:Oliver.Schaudt@xxxxxxxxx] Sent: Wednesday, February 08, 2006 1:38 PM To: nehal.sangoi@xxxxxxxxx Subject: AW: [users@httpd] RotateLogs in Apache 2.0 look at http://httpd.apache.org/docs/2.0/programs/rotatelogs.html there is a example CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common Greets Oliver -----Ursprüngliche Nachricht----- Von: Nehal Sangoi [mailto:nehal.sangoi@xxxxxxxxx] Gesendet: Mi 08.02.2006 08:22 An: users@xxxxxxxxxxxxxxxx Betreff: [users@httpd] RotateLogs in Apache 2.0 Hi I need to rotate logs in apache 2.0 once they reach the size limit of 5 MB. What commands would work to carry out the reqd. job? Thanks Nehal --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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