Need help: amazon_es is installed but still getting error that the plugin is not installed

Hi team,

installed logstash-plugin install logstash-output-amazon_es, but once restarted the logstash, log says not installed, detailed logs are as below

[root@ip-10-33-89-199 bin]# ./logstash --version
Using JAVA_HOME defined java: /usr/lib/jvm/jre-1.8.0
WARNING: Using JAVA_HOME while Logstash distribution comes with a bundled JDK.
DEPRECATION: The use of JAVA_HOME is now deprecated and will be removed starting from 8.0. Please configure LS_JAVA_HOME instead.
logstash 7.17.1

/usr/share/logstash/bin/logstash-plugin install logstash-output-amazon_es
Using JAVA_HOME defined java: /usr/lib/jvm/jre-1.8.0
WARNING: Using JAVA_HOME while Logstash distribution comes with a bundled JDK.
DEPRECATION: The use of JAVA_HOME is now deprecated and will be removed starting from 8.0. Please configure LS_JAVA_HOME instead.
Validating logstash-output-amazon_es
Resolving mixin dependencies
Installing logstash-output-amazon_es
Installation successful

error logs

[ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (PluginLoadingError) Couldn't find any output plugin named 'amazon_es'. Are you sure this is correct? Trying to load the amazon_es output plugin resulted in this error: Unable to load the requested plugin named amazon_es of type output. The plugin is not installed.", :backtrace=>["org.logstash.config.ir.CompiledPipeline.(CompiledPipeline.java:120)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.java:86)", "org.logstash.execution.JavaBasePipelineExt$INVOKER$i$1$0$initialize.call(JavaBasePipelineExt$INVOKER$i$1$0$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:837)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1169)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:1156)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:47)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:333)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:87)", "org.jruby.RubyClass.newInstance(RubyClass.java:939)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:52)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0$VARARGS(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:50)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "usr.share.logstash.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/usr/share/logstash/logstash-core/lib/logstash/agent.rb:383)", "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:829)"]}
Mar 24 23:47:39 ip-10-33-89-199 logstash: warning: thread "Converge PipelineAction::Create" terminated with exception (report_on_exception is true):
Mar 24 23:47:39 ip-10-33-89-199 logstash: LogStash::Error: Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>
Mar 24 23:47:39 ip-10-33-89-199 logstash: create at org/logstash/execution/ConvergeResultExt.java:135
Mar 24 23:47:39 ip-10-33-89-199 logstash: add at org/logstash/execution/ConvergeResultExt.java:60
Mar 24 23:47:39 ip-10-33-89-199 logstash: converge_state at /usr/share/logstash/logstash-core/lib/logstash/agent.rb:396
Mar 24 23:47:39 ip-10-33-89-199 logstash: [2022-03-24T23:47:39,537][ERROR][logstash.agent ] An exception happened when converging configuration {:exception=>LogStash::Error, :message=>"Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>"}
Mar 24 23:47:39 ip-10-33-89-199 logstash: [2022-03-24T23:47:39,548][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:135:in create'", "org/logstash/execution/ConvergeResultExt.java:60:in add'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:396:in `blockin converge_state'"]}
Mar 24 23:47:39 ip-10-33-89-199 logstash: [2022-03-24T23:47:39,559][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
Mar 24 23:47:39 ip-10-33-89-199 logstash: org.jruby.exceptions.SystemExit: (SystemExit) exit
Mar 24 23:47:39 ip-10-33-89-199 logstash: at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
Mar 24 23:47:39 ip-10-33-89-199 logstash: at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
Mar 24 23:47:39 ip-10-33-89-199 logstash: at usr.share.logstash.lib.bootstrap.environment.(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]
Mar 24 23:47:39 ip-10-33-89-199 systemd: logstash.service: main process exited, code=exited, status=1/FAILURE
Mar 24 23:47:39 ip-10-33-89-199 systemd: Unit logstash.service entered failed state.
Mar 24 23:47:39 ip-10-33-89-199 systemd: logstash.service failed.

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