Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logstash - gelf - input #11

Open
jordansissel opened this issue May 17, 2015 · 1 comment
Open

logstash - gelf - input #11

jordansissel opened this issue May 17, 2015 · 1 comment

Comments

@jordansissel
Copy link
Contributor

(This issue was originally filed by @karthiklml at elastic/logstash#2387)


Hi,

I am enabling the GELF input in the logstash and pushing some json code for testing .
Testing scenario is json test input => logstash-shipper => logstash => ES => UI . i am getting the following error . logstash version is 1.4.2

:message=>"Gelfd failed to parse a message skipping", :exception=>#<Gelfd::UnknownHeaderError: Could not find parser for header: [123, 34]>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/gelfd-0.2.0/lib/gelfd/parser.rb:14:in parse'", "/opt/logstash/lib/logstash/inputs/gelf.rb:83:inudp_listener'", "/opt/logstash/lib/logstash/inputs/gelf.rb:60:in run'", "/opt/logstash/lib/logstash/pipeline.rb:163:ininputworker'", "/opt/logstash/lib/logstash/pipeline.rb:157:in `start_input'"], :level=>:warn}

Please suggest me what is the root cause of it . and how to fix it .

Thanks

@mathieu-pousse
Copy link

Got the same.

This is due to the fact that the library used to parse the gelf payload only accept gzipped payload

To test, you can use this command (note the gzip -c to compress on the fly the payload)

echo -n '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }' | gzip -c | nc -w 1 -u logstash 12201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants