[syslog-ng]templates...

Balazs Scheidler bazsi@balabit.hu
Fri, 29 Mar 2002 09:37:36 +0100


On Thu, Mar 28, 2002 at 11:49:46AM -0800, Dave Patterson wrote:
> Hello,
> 
> has anyone had any luck /w templates <to configure the way syslog-ng
> writes its log>   I'd like to call a template file containing the
> information if possible. this is my current config:
> 
> template {date '+%b %e %T' hostname PROGRAM:}
> 
> destination d_program  {file("/var/syslog-ng/$HOST/$PROGRAM/$MONTH_$DAY" perm(0644) compress
> (yes) template(template)) };

destination d_program { file("..." template("$DATE $HOST $PROGRAM $MSG\n")); };

for a list of macros usable within template consult the docs (or the list
archive)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1