[syslog-ng] does remove_if_older still work?

Balazs Scheidler bazsi at balabit.hu
Mon Jun 13 19:33:24 CEST 2005

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.


More information about the syslog-ng mailing list