Removing log

You should be able to remove any of the logs that end in a single number.

For example:

/var/log/exim/mainlog.4

or

/var/log/exim/mainlog.4.gz

First delete the files with the highest number, or with the highest number followed by .gz.

You can also make changes to the logrotate script configuration so that if it doesn't already zip of the files (so they end in .gz) they will in the future.

The log system keeps up to four weeks of logs, but if you don't need all of them, then you don't.

And you can certainly have them zipped up before you save them, except for the current one (the one that does not) end in .gz.

Jeff
 
Back
Top