PDA

View Full Version : Apache Log File Rotation


sidhighwind
Mon 12th Jan '04, 8:24am
Hello,

I am wondering what some people do for log file rotation. We have just started getting our logs to hit the 2 gig mark before the end of the week and we are having to rotate it by hand on thrusday or friday. I am wondering how other big websites handle this problem.

Please let me know.

Thanks in advance!

Raz Meister
Mon 12th Jan '04, 10:13am
I use the built-in logrotate.

It rotates the logs daily, gzips them, and will only keep a certain number of logs.

Read 'man logrotate' for more info.

sidhighwind
Mon 12th Jan '04, 10:56am
We use that also. We rotate them on sundays only but I think that i will talk to the server admin about maybe doing them on wednesday and sundays. I'm just not sure.

Thanks for the info.