|
template() buggy for program()?: msg#00061syslog-ng
Hi, My Perl program launched by syslog-ng with a program() destination receives logs in this form: "<182>Mar 19 14:35:00 met-ixb postfix/smtpd[3234]: connect from l ocalhost[127.0.0.1]" (ie the log starts with '<', '1', '8', '2', '>'.) The *same* log line appears as: "Mar 19 14:35:00 hostname postfix/smtpd[3234]: connect from localhost[127.0.0.1]" in a file destination. My config looks like: destination dp_parse { program("/path/to/perl/program" template("$DATE $MSG\n")); }; destination df_tech { file("/path/to/file/tech.log" template("$DATE $HOST $MSG\n")); }; I am confused about this behavior, is it normal for a program() output to receive a syslog header? -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | File permissions not being honored: 00061, Chris Josephes |
|---|---|
| Next by Date: | Auditd: 00061, Coward, Robert (Contractor) |
| Previous by Thread: | File permissions not being honoredi: 00061, Chris Josephes |
| Next by Thread: | Re: template() buggy for program()?: 00061, Balazs Scheidler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |