107 Commits

Author SHA1 Message Date
Jochen Schalanda
401b7d07fa Add length check of UDP packet to UDPNetSyslogServer#run()
Fixes #5
2016-02-18 14:41:58 +01:00
Jochen Schalanda
c318fd0867 Use Travis CI Trusty build environment
https://docs.travis-ci.com/user/trusty-ci-environment/
2016-02-18 14:36:13 +01:00
Jochen Schalanda
a1f7800688 Add missing import to UnixSocketSyslog 2016-02-18 14:33:51 +01:00
Jochen Schalanda
384828091a Merge pull request #6 from negar7918/master
Implemented compatibility with frame header (RFC5424)
2016-02-18 14:32:40 +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
7bae907959 [maven-release-plugin] prepare for next development iteration 2015-05-22 20:47:03 +02:00
Bernd Ahlers
754f31b46d [maven-release-plugin] prepare release syslog4j-0.9.53 2015-05-22 20:46:58 +02:00
Bernd Ahlers
2be5d265f8 Merge pull request #4 from Graylog2/fix-empty-structured-data-parsing
Fix parsing of empty RFC5424 structured data in a message.
2015-05-22 18:30:44 +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
3a4555e1ca [maven-release-plugin] prepare for next development iteration 2015-03-31 18:15:55 +02:00
Jochen Schalanda
14460b6c1b [maven-release-plugin] prepare release syslog4j-0.9.52 2015-03-31 18:15:53 +02:00
Jochen Schalanda
d521ccea60 Remove TestNG in favor of JUnit 2015-03-31 18:10:32 +02:00
Jochen Schalanda
29f6a8c3f6 Update dependencies 2015-03-31 17:57:27 +02:00
Jochen Schalanda
eb57cc0eda Merge pull request #3 from dfch/master
Added missing facility constants from RFC3164, part 4.1.1
2015-03-31 17:51:43 +02:00
Lennart Koopmann
3e437a6650 Create CONTRIBUTING.md 2015-03-25 13:32:21 -05:00
Ronald Rink
5b826e80ad Merge remote-tracking branch 'origin/master' 2015-03-24 11:45:37 +01: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
494a8ed31a Move gpg signing setup into release profile to unbreak travis. 2015-01-14 17:13:41 +01:00
Bernd Ahlers
0b0f9fa8d6 [maven-release-plugin] prepare for next development iteration 2015-01-14 17:03:12 +01:00
Bernd Ahlers
b092782e55 [maven-release-plugin] prepare release syslog4j-0.9.51 2015-01-14 17:03:07 +01:00
Bernd Ahlers
1721003770 Set gpg key for signing. 2015-01-14 17:02:07 +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
6ee6a7f1a1 [maven-release-plugin] prepare for next development iteration 2014-10-22 16:28:24 +02:00
Jochen Schalanda
8582322dff [maven-release-plugin] prepare release syslog4j-0.9.50 2014-10-22 16:28:23 +02: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
3a67b21cbf [maven-release-plugin] prepare for next development iteration 2014-10-22 10:00:58 +02:00
Bernd Ahlers
017e57ecea [maven-release-plugin] prepare release syslog4j-0.9.49 2014-10-22 10:00:54 +02:00
Bernd Ahlers
81c8a54512 Bump version to 0.9.49-SNAPSHOT. 2014-10-22 09:59:39 +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
db76a9f689 Add travis build status to README. 2014-10-21 19:21:09 +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
51567265ff Move to a markdown readme and update the content. 2014-10-21 19:00:37 +02:00
Bernd Ahlers
950125c11a Update pom.xml.
* Add some more plugins.
* Update to newer oss parent pom.
* Add some missing settings.
2014-10-21 18:53:01 +02:00
Bernd Ahlers
ef722a9191 Add travis config. 2014-10-21 18:46:32 +02:00
Bernd Ahlers
24daa908bc Start tests for StructuredSyslogServerEvent. 2014-10-21 18:39:35 +02:00
Bernd Ahlers
d6ac701187 Replace junit with testng. 2014-10-21 18:06:19 +02:00
Bernd Ahlers
7380b94581 Merge branch 'reformat' 2014-10-21 17:05:58 +02:00
Bernd Ahlers
73f8cbea9d Ignore idea files and directories. 2014-10-21 17:05:31 +02:00
Bernd Ahlers
ba05c50c7f Reformat code. 2014-10-21 16:57:48 +02:00