[syslog-ng]Rotate my logs files

Stefan Kangas syslog-ng@lists.balabit.hu
Mon, 2 Jun 2003 04:06:18 +0200


hello, im using a "1 hour trow-together"-script i made, you can contact
me in #linux.se @ efnet nick NeonMaN and ill send it to you.

See you.

--
Best regards, Jonas Lundgren

> Hi ,
> I am testing syslog-ng and I want to know how can I rotate my logs file .
> To logs messages I have a directory for many hosts, for each host, logs are
> classified by facilities, I  have a new log file each day for each facility.
> so the name of my logs files changes according to the date.
> how can rotate the old log files? the logs of 2days ago? 3days ago?
> thanks
> this is the section that logs my files :
>   destination hosts {
> 
>   file("/var/log/HOSTS/$HOST/$FACILITY/$FACILITY_$YEAR_$MONTH_$DAY"
>     create_dirs(yes));
> };
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>