logo       

template() buggy for program()?: msg#00061

syslog-ng

Subject: template() buggy for program()?

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>
Google Custom Search

News | FAQ | advertise