Hi Guys,
I have tried to implement a logstash config by installing a custom logstash input from the link below:
I have made necessary configs, but getting below error:
][FATAL][logstash.runner ] An unexpected error occurred! {:error=>java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 10, :backtrace=>["org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:541)", "org.jruby.runtime.ThreadContext.currentBinding(ThreadContext.java:1143)", "org.jruby.RubyEnumerable.each(RubyEnumerable.java:131)", "org.jruby.RubyEnumerable.countCommon(RubyEnumerable.java:180)", "org.jruby.RubyEnumerable.count(RubyEnumerable.java:161)", "org.jruby.RubyEnumerable$INVOKER$s$count.call(RubyEnumerable$INVOKER$s$count.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneBlock.call(JavaMethod.java:575)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "opt.bitnami.logstash.vendor.bundle.jruby.$2_dot_5_dot_0.gems.promise_pool_minus_0_dot_9_dot_2.lib.promise_pool.timer.RUBY$block$group_new$2(/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/promise_pool-0.9.2/lib/promise_pool/timer.rb:28)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:138)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:52)", "org.jruby.runtime.Block.call(Block.java:139)", "org.jruby.RubyProc.call(RubyProc.java:318)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)", "java.base/java.lang.Thread.run(Thread.java:834)"]}
[2020-07-18T22:12:02,575][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
Below is my logstash config file
input
{
firebase {
url => "https://test.firebaseio.com"
refs => {
deals => {
path => "orders"
}
}
}
}
output
{
elasticsearch
{
hosts => ["127.0.0.1:9200"]
document_id => "%{logstash_checksum}"
index => "logstash-%{+YYYY.MM.dd}"
}
}