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

Re: Logrotating single-issue files



Nicolas Mailhot <Nicolas Mailhot laPoste net> writes:

> 	The problem is of course once the files have been rotated once nothing
> will recreate the original files so they'll be stuck in first rotation
> forever (of course one might tell logrotate to create empty new files
> after compression but that means filling the disk with empty files -
> plus gziped empty files are *not* zero-sized anymore).

Investigate the `create', `size' and compress specs in man logrotate.conf

Will something like this in /etc/lograte.conf work?

/home/reader/t/var/log/*.log {
    create 0600 reader reader
    size=1000k
    rotate 10
    compress
}




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