[syslog-ng]logging from 20 hosts
Gregor Binder
gbinder@sysfive.com
Tue, 20 Mar 2001 16:25:49 +0100
matthew.hoskins@njit.edu on Tue, Mar 20, 2001 at 09:13:56AM -0500:
> file( "/var/logs/$HOST/$YEAR/$MONTH/$DAY/$FACILITY.log" create_dirs(yes));
>
> One reason we like this so much is there is no need for external
> log-rotation. Its all built into syslog-ng. (Nice work devel'ers,
> we really like that feature)
yep, good stuff Balasz :)
All you have to add is a cronjob using find -mtime (or something like
this, to send your logs to post-processing, move them into an archive,
on tape, or simply delete them) and you're done. Haven't had a full log
disk for some time :)
greetings,
--
Gregor Binder <gregor.binder@sysfive.com> http://sysfive.com/
sysfive.com GmbH UNIX. Networking. Security. Applications.
PGP id: 0x20C6DA55 fp: 18AB 2DD0 F8FA D710 1EDC A97A B128 01C0 20C6 DA55