I need to install gems in logstash 1.5.2
I have made a filter that need the typhoeus
ruby gem.
I have tried to install it with gem install typhoeus
and by setting the environment variable GEM_HOME to pathToLogstash-1.5.2/vendor/bundle/jruby/1.9
(as explained here).
A folder typhoeus
can now be found in pathToLogstash-1.5.2/vendor/bundle/jruby/1.9/gems
.
Yet, when I launch logstash with my filter named "indexFilter", for instance :
#test.conf
input {file { path => "/tmp/test.log" } }
filter { indexFilter { } }
output {stdout {}}
launching
bin/logstash -f test.conf
will results in
The error reported is:
Couldn't find any filter plugin named 'indexFilter'. Are you sure this is correct? Trying to load the indexFilter filter plugin resulted in this error: no such file to load -- typhoeus
I have found ways to install gems with previous versions of logstash (<=1.4) here
Can anyone give me the way to do the same in logstash 1.5 ?
Thank you