[syslog-ng] [Bug 197] New: Characters lost when sending message over network that begins with {
bugzilla at bugzilla.balabit.com
bugzilla at bugzilla.balabit.com
Mon Sep 24 20:08:24 CEST 2012
https://bugzilla.balabit.com/show_bug.cgi?id=197
Summary: Characters lost when sending message over network that
begins with {
Product: syslog-ng
Version: 3.3.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: unspecified
Component: syslog-ng
AssignedTo: bazsi at balabit.hu
ReportedBy: bfield.wrk at gmail.com
Type of the Report: ---
Estimated Hours: 0.0
When sending a message that begins with { over the network the leading parenthesis and white space are lost.
I've tested this on 3.3.4 with a manually compiled version and the version distributed with Ubuntu. Both are impacted by this bug.
Here is a simple configuration to try:
--------- syslog-ng.conf ---------
source s_src {
system();
};
source s_udp { udp(ip(127.0.0.1)); };
destination d_testfile { file("/var/log/test_json" template("$MSG\n")); };
destination d_udp_addparen { udp("127.0.0.1" template("{ second: { $MSG\n")); };
destination d_filedirect { file("/var/log/test_jsondirect" template("{ second: { $MSG\n")); };
log { source(s_src); destination(d_udp_addparen); destination(d_filedirect); };
log { source(s_udp); destination(d_testfile); };
-------- end syslog-ng.conf -------
# echo "{ json type message }" | logger
# tail /var/log/test_jsondirect
{ second: { { json type message }
# tail /var/log/test_json
second: { { json type message }
--
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the syslog-ng
mailing list