Fail to get varnishlog to work


#1

logstash keeps restarting with the following error when using varnishlog (logstash-input-varnishlog) with the following configuration. Any idea how to get it to work?

input {

varnishlog {}

}

output {
elasticsearch { hosts => ["localhost:9200"] }
}

I am using
logstash 5.0.1
varnish-4.1.3

[2016-11-23T12:45:39,343][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,352][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,352][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,352][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,353][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,353][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,353][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,353][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,354][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,355][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,355][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,347][DEBUG][logstash.agent           ] Error in reactor loop escaped: Bad file descriptor - Bad file descriptor (Errno::EBADF)
[2016-11-23T12:45:39,356][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,356][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,360][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,360][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,361][DEBUG][logstash.agent           ] org/jruby/RubyIO.java:3705:in `select'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:322:in `handle_servers'
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/server.rb:296:in `run'
[2016-11-23T12:45:39,361][DEBUG][logstash.agent           ] 2016-11-23 12:45:39 +0800: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
[2016-11-23T12:45:39,360][DEBUG][logstash.agent           ] ["org/jruby/RubyIO.java:3705:in `select'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/reactor.rb:29:in `run_internal'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/puma-2.16.0-java/lib/puma/reactor.rb:138:in `run_in_thread'"]

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.