[syslog-ng] destination filename macro expansion
Balazs Scheidler
bazsi@balabit.hu
Tue, 26 Oct 1999 20:22:45 +0200
Hi,
I've worked a bit on syslog-ng and implemented macro expansion on
destination filenames. It's not complete yet, but anyone interested may play
with it a bit. Here's an example how to use this:
-----------------------------------------------------
options { long_hostnames(on); time_reopen(2); };
source src { unix-stream("log1"); internal(); };
destination all { file("/var/log/$HOST.log"); };
log { source(src); destination(all); };
------------------------------------------------------
You'll need to grab the source from the CVS to use this.
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
url: http://www.balabit.hu/pgpkey.txt