Rotating your log files will save you a bunch of space from bloated web logs growing out of control. Logrotate is easily customisable to suit any needs.

To force logrotate to rotate out of schedule use the f flag, and to make it output to screen, use V for verbose ie.

Below is an excerpt for Logrotate configured with lighttpd. you will need to reload your specific web server with its own reload command.

Comments are closed.