26 Commits

Author SHA1 Message Date
Jochen Schalanda
8852380e46 Remove dependency on Google Guava 2016-02-18 16:00:27 +01:00
Jochen Schalanda
401b7d07fa Add length check of UDP packet to UDPNetSyslogServer#run()
Fixes #5
2016-02-18 14:41:58 +01:00
Jochen Schalanda
a1f7800688 Add missing import to UnixSocketSyslog 2016-02-18 14:33:51 +01:00
Negar Safinianaini
8e933bacbf Fixed a possible NPE potential. 2016-02-18 13:54:00 +01:00
Negar Safinianaini
999568c5da Removed the min length limitation (missunderstood rfc) 2016-02-15 10:50:07 +01:00
Negar Safinianaini
ec7df03bce 1. RFC5424 compatibility in timestamp format and message length 2. Introduced a new log method which accepts Date as an argument to create a syslog with the original timestamp. 2016-02-11 13:53:55 +01:00
Negar Safinianaini
e3c9709ee9 Implemented compatibility with frame header. Frame header is for instance used by syslog() driver in syslog-ng server and is used to support RFC5424. 2016-02-09 13:33:11 +01:00
Jochen Schalanda
8d48a0ae3e Add (correct) test for removing double dashes in StructuredSyslogMessage 2015-05-24 12:32:25 +02:00
Jochen Schalanda
583e37b0c9 Remove broken test in StructuredSyslogMessageTest 2015-05-24 12:02:12 +02:00
Jochen Schalanda
6d1294cf7e Add tests for StructuredSyslogMessage
Refs commit 91557d687fa89f9cfcc1d38a0a38a3bd84625b5d
2015-05-24 11:52:51 +02:00
Bernd Ahlers
91557d687f Fix parsing of empty RFC5424 structured data in a message.
Refs Graylog2/graylog2-server#1161.
2015-05-22 18:21:07 +02:00
Jochen Schalanda
d521ccea60 Remove TestNG in favor of JUnit 2015-03-31 18:10:32 +02:00
Ronald Rink
d4c3f7e7bb added missing facility constants from RFC3164, part 4.1.1, resolves #2 2015-03-24 11:45:18 +01:00
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