Error with outside gem for custom plugin, bug in pipeline

Hi All

I am developing a very small plugin, in which in rb file, i am using a ruby gem

require 'crack'

i installed this crack gem, but still i get this error

I installed the external gem like this

/opt/logstash/bin/ruby -S gem install crack

after running the pipeline i am getting this error

LoadError: no such file to load -- crack
require at org/jruby/RubyKernel.java:987
require at /vendor/bundle/jruby/2.5.0/gems/pol
yglot-0.3.5/lib/polyglot.rb:65

Anyone knows how to install external gems

also getting this error

`

java.lang.IllegalStateException: Logstash stopped processing because of an error:(LoadError) no such file to load --crack

`

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