graylog-labs / gelf-rb

Ruby GELF library (Graylog Extended Log Format)

Home Page:https://rubygems.org/gems/gelf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long log message crashes Graylog server

iscra opened this issue · comments

This client library does not respect chunk limit, so long messages (more than 128 chunks), are not properly encoded and cause Graylog server (current 1.3.3) to crash and stop processing any message.
The whole GELF input is blocks and processing buffer runs full.

Graylog specifies (http://docs.graylog.org/en/latest/pages/gelf.html#chunked-gelf):

Chunked GELF
All chunks MUST arrive within 5 seconds or the server will discard all already arrived and still arriving chunks. A message MUST NOT consist of more than 128 chunks.

@iscra Thank you for the report! The gelf-rb code has been fixed as well as the code on the server. (see Graylog2/graylog2-server#1986)