I installed logstash 1.5.2 on Centos 6.5 VM (test environment).
My previous used version was Logstash 1.4.2 and I kept the same configuration files used with previous version.
When I launch logstash I get the following error:
LoadError: no such file to load -- restclient
require at org/jruby/RubyKernel.java:1072
require at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65
register at (ruby filter init):5
eval at org/jruby/RubyKernel.java:1111
register at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-ruby-1.0.0/lib/logstash/filters/ruby.rb:29
each at org/jruby/RubyArray.java:1613
start_filters at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.2.2-java/lib/logstash/pipeline.rb:154
run at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.2.2-java/lib/logstash/pipeline.rb:81
execute at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.2.2-java/lib/logstash/agent.rb:150
run at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.2.2-java/lib/logstash/runner.rb:91
call at org/jruby/RubyProc.java:271
run at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.2.2-java/lib/logstash/runner.rb:96
call at org/jruby/RubyProc.java:271
initialize at /application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.20/lib/stud/task.rb:12
I use a ruby logstash filter for my use case and I need the rest-client gem, but this gem isn't present under my installation path
/application/nfmoss/vendors/logstash/vendor/bundle/jruby/1.9/gems/
So I tried to install the rest-client gem with the command "sudo gem install rest-client" (after execution of command "sudo yum install rubygems"), but I get another error:
Building native extensions. This could take a while...
ERROR: Error installing rest-client:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/unf_ext-0.0.7.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/unf_ext-0.0.7.1/ext/unf_ext/gem_make.out
Now, I don't know what I have to do.
I work in a test environment not in a developing environment.
Some suggestion?
Thanks.