[syslog-ng]hosts... today's stupid question :}

Balazs Scheidler bazsi@balabit.hu
Wed, 10 Apr 2002 11:26:13 +0200


On Wed, Apr 10, 2002 at 08:22:26AM +0800, bretwatson@charteredsemi.com wrote:
> 
> Hi All,
> a stupid question most probably,
> I'd like to build a generic destination for my default filter so that any
> new hosts get dropped into their own directory
> 
> something like
> destination host { file("/usr/log1/$HOST/$YEAR$MONTH$DAY" owner(root)
> group(logusers) perm(0640) dir_perm(0755)); };
> 
> But syslog-ng doesn't seem to like it and complains of syntax errors all
> the time..

host is a reserved word, don't use it for identifiers. the best bet is to
prefix identifiers with the purpose, e.g. d_host for destination f_host for
filters and so on. It will not collide with reserved words then.

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