Norbert Nemec writes:
Using a simple setup for logrotate to just rotate everything within a
directory only depending on the file size, I always tripped over a nasty
tweak:

/var/log/syslog/*
{
    rotate 100
    size 50k
    compress
...
works fine most of the time, except that in rare cases the compressed file
is still >50k, giving me a 'filename.1.gz.1.gz.1.gz.1.gz'. I could not find
an easy way to fix that.

I avoided this by 1. having the log files consistently end with .log and using /var/log/syslog/*.log, 2. defining an 'olddir' so that compressed logs aren't kept in the same directory.


Paul Martin writes:
Bear in mind, also that the current version in unstable doesn't
understand that syntax any more (due to upstream changes).

That must have changed, as 3.7-5 (stable) still works with a wildcard.

 -Tom


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to