LogStash Varnish plugin

logstash is a tool for managing events and logs. You can use it to collect logs, parse them, and store them for later use (like, for searching). Speaking of searching, logstash comes with a web interface for searching and drilling into all of your logs.

Since version 1.1.13 logstash support input for the varnish shared memory binary log.

Licence: 
Status: 
Used in production
Varnish version supported: 
Commercial support: 
No
Category: 
Monitoring+Statistics

Comments

Is there any plans for making this plugin support 4+?

The roor i get is:

Using milestone 1 input plugin 'varnishlog'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin.  For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}

FFI::NotFoundError: Function 'VSL_Setup' not found in [libvarnishapi.so.1]

  attach_function at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/ffi/library.rb:168

             each at org/jruby/RubyArray.java:1613

  attach_function at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/ffi/library.rb:164

              VSL at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/varnish-rb-0.2.0/lib/varnish/vsl.rb:13

          Varnish at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/varnish-rb-0.2.0/lib/varnish/vsl.rb:6

           (root) at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/varnish-rb-0.2.0/lib/varnish/vsl.rb:5

          require at org/jruby/RubyKernel.java:1085

          require at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55

          require at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53

          require at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65

           (root) at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/varnish-rb-0.2.0/lib/varnish.rb:1

          require at org/jruby/RubyKernel.java:1085

          require at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135

          require at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:133

          require at file:/root/logstash-1.4.2/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:124

          require at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/polyglot-0.3.4/lib/polyglot.rb:65

           (root) at /root/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/varnish-rb-0.2.0/lib/varnish.rb:9

           (root) at /root/logstash-1.4.2/lib/logstash/inputs/varnishlog.rb:1

             each at org/jruby/RubyArray.java:1613

         register at /root/logstash-1.4.2/lib/logstash/inputs/varnishlog.rb:14

     start_inputs at /root/logstash-1.4.2/lib/logstash/pipeline.rb:135

     start_inputs at /root/logstash-1.4.2/lib/logstash/pipeline.rb:134

              run at /root/logstash-1.4.2/lib/logstash/runner.rb:168

             call at org/jruby/RubyProc.java:271

              run at /root/logstash-1.4.2/lib/logstash/pipeline.rb:72

 

I'm still getting the same error with Logstash 1.5.3.