[syslog-ng] does remove_if_older still work?

sawall sawall at gmail.com
Mon Jun 13 20:11:09 CEST 2005


so, is there another way to do this, or is my best bet to do the
following via cron:

find /pathto/logs/* -ctime +7 -exec rm -f {} \; 2> /dev/null

thanks,
chris


On 6/13/05, Balazs Scheidler <bazsi at balabit.hu> wrote:
> Only if the file is reopened, e.g. it has not been written within
> time_reap() seconds.
> 
> 
> On Mon, 2005-06-13 at 12:04 -0500, sawall wrote:
> > I have one line in my syslog-ng.conf file, as follows:
> >
> > destination netops { file("/var/log/HOSTS/$HOST"
> > remove_if_older(604800) owner(root) group (root) perm(0644)
> > dir_perm(0700)); };
> >
> > I'm running version 1.6.7 on Fedora Core 2.  I would like to have the
> > files that hit this destination be deleted every 7 days.  It does not
> > appear to be working as the files keep growing.
> >
> > Maybe I misunderstood, but this should let the file grow for n
> > seconds, then delete the file and start writing to a new file with the
> > same name, right?
> >
> > I tried setting this to 60 and that made no difference.
> 
> --
> Bazsi
> 
>


More information about the syslog-ng mailing list