How i configure logrotate to not delete the log files after rotation

logginglogrotate

There's a way to do this?

Best Answer

In your logrotate.conf (or the equivilent logrotate.d file), change the line that says "

rotate 10

(your number may be different) to a bigger number. That will tell it to keep that many days of logs. You can make it 36500, which would last you 100 years.