Open pac-work opened 6 years ago
@joschi Thanks for pointing out this source code. As you can see, the tests are incorrect - they are even inconsistent. If you look at the first test, you see that ID47
is expected as a part of the message (which is incorrect), whereas in the third and fourth test the ID47
is completely ignored (incorrect as well) and not part of the message (correct).
Correct solution is to not ignore ID47
, but correctly parse it as msg_id
or something similar.
Examples of lines which are not parsed correctly:
First example line is taken directly from the RFC5424 examples, only the date has been modified and BOM removed (which is OK according to the RFC5424 grammar).
Expected Behavior
Fields
msg_id
(or similar) andmessage
should be parsed out properly. For the first example message, I would expectmsg_id
to beID47
andmessage
to be'su root' failed for lonvick on /dev/pts/8
.Current Behavior
For the first example message, I get only
message
field:It seems that the input parser ignores the fact that the
-
in the original message isSTRUCTURED-DATA = NILVALUE
in the above mentioned grammar, not part of any message. In this example, there should be no-
in the message at all. Themsg_id
field seems to be currently completely ignored by the Graylog.Similarly in the second example, Graylog reports:
But expected would be to have
msg_id
ofLog2
and message(SyslogTCPLogSink.cpp:35) Value 16
.Steps to Reproduce (for bugs)
Just send above mentioned example messages to the graylog server.
Context
The documentation states that:
But unfortunately, it is not able to parse even the example line from the mentioned RFC.