Moocar / logback-gelf

Logback plugin to send GELF messages to graylog2 server
Apache License 2.0
147 stars 59 forks source link

support for 0.10 #25

Closed raoyvn closed 10 years ago

raoyvn commented 11 years ago

Hi, We are using Server version: 0.10.0 in our production deployment. i tried by specifying

0.10.0

in the appender configuration. It works for some cases , but in the rest of cases i get the following error

2013-06-10 13:58:47,023 WARN : org.graylog2.inputs.gelf.GELFDispatcher - Could not handle GELF message. java.lang.IllegalStateException: Could not extract sequence number at org.graylog2.gelf.GELFMessageChunk.extractSequenceNumber(GELFMessageChunk.java:132) at org.graylog2.gelf.GELFMessageChunk.read(GELFMessageChunk.java:107) at org.graylog2.gelf.GELFMessageChunk.(GELFMessageChunk.java:77) at org.graylog2.gelf.GELFMessageChunk.(GELFMessageChunk.java:81)

2013-06-10 13:58:47,519 DEBUG: org.graylog2.gelf.GELFChunkManager - Dumping GELF chunk map [4]: Message <5fe3a6c91e282fe5> Chunks: ID: 5fe3a6c91e282fe5 Sequence: 74/14 Arrival: 1370887125 Data size: 1038 Message <5b6c72af050dc21c> Chunks: ID: 5b6c72af050dc21c Sequence: 25/112 Arrival: 1370887126 Data size: 1038 Message <611cfe1079577f74> Chunks: ID: 611cfe1079577f74 Sequence: 79/92 Arrival: 1370887127 Data size: 1038 Message Chunks: ID: d290ba683ae20c47 Sequence: 25/27 Arrival: 1370887125 Data size: 1038

2013-06-10 13:58:47,519 DEBUG: org.graylog2.gelf.GELFChunkManager - Message <5fe3a6c91e282fe5> does not even contain first chunk. Not complete! 2013-06-10 13:58:47,519 DEBUG: org.graylog2.gelf.GELFChunkManager - Message <5b6c72af050dc21c> does not even contain first chunk. Not complete! 2013-06-10 13:58:47,519 DEBUG: org.graylog2.gelf.GELFChunkManager - Message <611cfe1079577f74> does not even contain first chunk. Not complete! 2013-06-10 13:58:47,519 DEBUG: org.graylog2.gelf.GELFChunkManager - Message does not even contain first chunk. Not complete!

So i am assuming this issue is due to the header format inconsistencies as outlined in other mailing lists.

Is there an ETA to add support for 0.10.0 -thanks -venkat

Moocar commented 11 years ago

Hi, I'm not spending much time maintaining this library any more. Any chance you can send a PR with support for 0.10.0?