7 Oct
2002
7 Oct
'02
3:43 p.m.
On Fri, Oct 04, 2002 at 05:02:38PM +0300, alexch wrote:
ok I have correct this line in my syslog-ng.conf
destination hosts { file("/var/log/hosts/$HOST/$FACILITY/$MONTH/$DAY/$FACILITY$YEAR$MONTH$DAY" template("$MSG\n") owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };
and now log looks like this
hmm.. $MSG automatically includes the programname, as it cannot be separated from the main part of the message in all cases. the program doesn't have to send those programname tags, so try stripping them off in the send side. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1