[syslog-ng]How can I get logs without date,time hostname and facility ?
Balazs Scheidler
bazsi@balabit.hu
Mon, 7 Oct 2002 15:43:43 +0200
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