Logstash 8.7.0 includes logstash-integration-aws-7.1.0. When running Logstash with the pipeline includes this plugin features (ex: s3-output), Logstash doesn't run, outputs following error.
[2023-04-06T04:56:51,818][ERROR][logstash.agent ] Failed to execute action
{:action=>LogStash::PipelineAction::Create/pipeline_id:combo-s3, :exception=>"Java::JavaLang::IllegalStateException",
:message=>"Unable to configure plugins: (RuntimeError) \n\n\tyou might need to reinstall the gem which depends on the missing
jar or in case there is Jars.lock then resolve the jars with `lock_jars` command\n\nno such file to load --
org/logstash/plugins/integration/aws/logstash-integration-aws/7.1.0/logstash-integration-aws-7.1.0.jar (LoadError)", :backtrace=>
["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:120)",
"org.logstash.execution.AbstractPipelineExt.initialize(AbstractPipelineExt.java:186)",
"org.logstash.execution.AbstractPipelineExt$INVOKER$i$initialize.call(AbstractPipelineExt$INVOKER$i$initialize.gen)",
"org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:846)",
"org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1229)",
"org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:1202)",
"org.jruby.ir.targets.indy.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:29)",
"opt.cls.logstash.logstash_minus_8_dot_7_dot_0.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/opt/c
ls/logstash/logstash-8.7.0/logstash-core/lib/logstash/java_pipeline.rb:48)",
"org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:139)",
"org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:112)",
"org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:329)",
"org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:87)", "org.jruby.RubyClass.newInstance(RubyClass.java:911)",
"org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)",
"org.jruby.ir.targets.indy.InvokeSite.invoke(InvokeSite.java:208)",
"opt.cls.logstash.logstash_minus_8_dot_7_dot_0.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute
$0(/opt/cls/logstash/logstash-8.7.0/logstash-core/lib/logstash/pipeline_action/create.rb:50)",
"opt.cls.logstash.logstash_minus_8_dot_7_dot_0.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute
$0$__VARARGS__(/opt/cls/logstash/logstash-8.7.0/logstash-core/lib/logstash/pipeline_action/create.rb:49)",
"org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:139)",
"org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:112)",
"org.jruby.ir.targets.indy.InvokeSite.invoke(InvokeSite.java:208)",
"opt.cls.logstash.logstash_minus_8_dot_7_dot_0.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/opt/cls/
logstash/logstash-8.7.0/logstash-core/lib/logstash/agent.rb:386)",
"org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:141)",
"org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:64)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)",
"org.jruby.runtime.Block.call(Block.java:143)", "org.jruby.RubyProc.call(RubyProc.java:309)",
"org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:107)", "java.base/java.lang.Thread.run(Thread.java:833)"]}
Issue description
Logstash
8.7.0
includeslogstash-integration-aws-7.1.0
. When running Logstash with the pipeline includes this plugin features (ex: s3-output), Logstash doesn't run, outputs following error.Workaround
integration-aws
repository./gradlew vendor
gem build /path/to/logstash-integration-aws.gemspec
// install abundler
to makegem
command available./bin/logstash-plugin install /path/to/logstash-integration-aws-7.1.0-java.gem