hosts... today's stupid question :}
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.. Any hints? Thanks, Bret [This e-mail is confidential and may also be privileged. If you are not the intended recipient, please delete it and notify us immediately; you should not copy or use it for any purpose, nor disclose its contents to any other person. Thank you.]
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
participants (2)
-
Balazs Scheidler
-
bretwatson@charteredsemi.com