[syslog-ng] logrotate again...

Andrej Ricnik-Bay andrej.groups at gmail.com
Tue Dec 5 21:43:59 CET 2006


On 12/6/06, Vadim Pushkin <wiskbroom at hotmail.com> wrote:

> 2. The other issue that I am having is that I wish to rotate now, my
> filesystem is fill, but since I did not rotate, all of my logfiles are one.
> How can I prune them of any data prior to say 15 Nov for *each* logfile?
find /var/log -type f -exec sed -i '/15 Nov/d'  {} \;
should work - is untested, though :)


>  Thank you again,
>
> .vp
Cheers


More information about the syslog-ng mailing list