Bernd Ahlers
dd8bbcd6be
Use structured syslog parser from the NessComputing syslog4j fork.
...
Fixes parsing of structured data values that contain whitespace.
This addresses issues from Graylog2/graylog2-server#845 .
Parser and test code from NessComputing/syslog4j@038caf2 .
2015-01-14 14:40:25 +01:00
Bernd Ahlers
28a2b817c7
Add failing tests for Graylog2/graylog2-server#845 .
...
https://github.com/Graylog2/graylog2-server/issues/845
2015-01-14 14:04:10 +01:00
Jochen Schalanda
4996dd00c3
Ensure that dates are always parsed with English locale
...
SimpleDateFormat is parsing dates in a locale-sensitive manner but timestamps in
syslog messages are always using English month names (RFC 3164, section 4.1.2).
2014-10-22 15:59:07 +02:00
Bernd Ahlers
3f4040f69d
Fix parsing of ISO timestamps without milliseconds. (syslog-ng default)
...
This fixes parsing of structured syslog messages sent by syslog-ng.
2014-10-21 20:48:16 +02:00
Bernd Ahlers
3ce15eef4b
Start tests for SyslogServerEventTest.
2014-10-21 20:47:19 +02:00
Bernd Ahlers
fc1de3484e
Remove unused setUp() method.
2014-10-21 19:31:19 +02:00
Bernd Ahlers
4401cdcd0b
Test structured message with only structured data.
2014-10-21 19:18:54 +02:00
Bernd Ahlers
f3d9932d2c
Add structured message test without structured data.
2014-10-21 19:13:06 +02:00
Bernd Ahlers
554c5eb4b8
Note message example origin in tests.
2014-10-21 19:12:31 +02:00
Bernd Ahlers
24daa908bc
Start tests for StructuredSyslogServerEvent.
2014-10-21 18:39:35 +02:00
Bernd Ahlers
ba05c50c7f
Reformat code.
2014-10-21 16:57:48 +02:00
Kay Roepke
e484aaecec
renamed to org.graylog2.syslog4j, to have cleaner dependencies in our products
...
this library is unlikely to be developed further, but is a candidate for a complete rewrite.
nevertheless it wasn't available in maven for our purposes, so we decided to repackage it.
2014-06-16 11:41:49 +02:00
Lennart Koopmann
c4578dc062
initial
2013-03-14 22:08:21 +01:00