[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] Need some help on "spam" report



On Tuesday, April 20, 2004, at 02:29  PM, Chuck Lewis wrote:

Login with telnet
type; pico -w /etc/logrotate.conf
change the line "rotate 4" into say "rotate 60"
hit ctrl-x to exit, save changes

This will keep your logs for 60 days, the comment line above stating 'keep
logs 4 weeks' suggest that the value is the number of weeks. That is
incorrect, it IS the number of days.

That is incorrect. rotate 4 specifies how many rotations to go through before a log file is deleted. From man logrotate:

rotate count
Log files are rotated <count> times before being removed or mailed to the address specified in a mail directive. If count is 0, old versions are removed rather then rotated.

http://www.die.net/doc/linux/man/man8/logrotate.8.html

To specify the number of days to keep a log, you would use daily, weekly or monthly.

In this case, you would want to change it to rotate monthly and then keep the logs for however long you like. 12 months maybe?

HTH,
j