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

Logspout generating invalid GELF headers #3

Open
averri opened this issue Aug 9, 2016 · 0 comments
Open

Logspout generating invalid GELF headers #3

averri opened this issue Aug 9, 2016 · 0 comments

Comments

@averri
Copy link

averri commented Aug 9, 2016

Steps to reproduce

Start Logstash using Gelf input and print logs to Stdout:

docker run -p 12201:12201/udp logstash -e 'input{ gelf{ } } output{ stdout { codec => rubydebug } }'

On another terminal, start the Logspout application:

docker run  -v /var/run/docker.sock:/var/run/docker.sock -d micahhausler/logspout:gelf  gelf://192.168.99.100:12201

Log a message from any container:

docker run --rm busybox echo Hello

Logstash will not recognize the GELF header:

{:timestamp=>"2016-08-09T10:02:00.844000+0000", :message=>"Gelfd failed to parse a message skipping", :exception=>#<Gelfd::UnknownHeaderError: Could not find pa
rser 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/vendor/bund
le/jruby/1.9/gems/logstash-input-gelf-2.0.7/lib/logstash/inputs/gelf.rb:104:in `udp_listener'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-gelf-
2.0.7/lib/logstash/inputs/gelf.rb:77:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:342:in `inputworke
r'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:336:in `start_input'"], :level=>:warn}
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

1 participant