Hi, I am new to logstash and using logstash to add my logs with Elasticsearch. But I can't get through this error. Please help. It is urgent.
Using bundled JDK: /Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/jdk.app/Contents/Home
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to /Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logs which is now configured via log4j2.properties
[2022-06-10T15:59:25,502][INFO ][logstash.runner ] Log4j configuration path used is: /Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/config/log4j2.properties
[2022-06-10T15:59:25,514][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.15.2", "jruby.version"=>"jruby 9.2.19.0 (2.5.8) 2021-06-15 55810c552b OpenJDK 64-Bit Server VM 11.0.12+7 on 11.0.12+7 +indy +jit [darwin-x86_64]"}
[2022-06-10T15:59:25,584][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2022-06-10T15:59:26,402][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2022-06-10T15:59:26,797][INFO ][org.reflections.Reflections] Reflections took 52 ms to scan 1 urls, producing 120 keys and 417 values
[2022-06-10T15:59:27,701][ERROR][logstash.filters.elapsed ] Invalid setting for elapsed filter plugin:
filter {
elapsed {
# This setting must be a number
# Expected number, got "seconds" (type seconds)
timeout => "seconds"
...
}
}
[2022-06-10T15:59:27,705][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (ConfigurationError) Something is wrong with your configuration.", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:119)", "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)", "Users.akjain3cisco_dot_com.Documents.ELK.logstash_minus_7_dot_15_dot_2.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/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)", "Users.akjain3cisco_dot_com.Documents.ELK.logstash_minus_7_dot_15_dot_2.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logstash-core/lib/logstash/pipeline_action/create.rb:52)", "Users.akjain3cisco_dot_com.Documents.ELK.logstash_minus_7_dot_15_dot_2.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0$__VARARGS__(/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logstash-core/lib/logstash/pipeline_action/create.rb)", "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)", "Users.akjain3cisco_dot_com.Documents.ELK.logstash_minus_7_dot_15_dot_2.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logstash-core/lib/logstash/agent.rb:391)", "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)"]}
warning: thread "Converge PipelineAction::Create<main>" terminated with exception (report_on_exception is true):
LogStash::Error: Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`
create at org/logstash/execution/ConvergeResultExt.java:135
add at org/logstash/execution/ConvergeResultExt.java:60
converge_state at /Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logstash-core/lib/logstash/agent.rb:404
[2022-06-10T15:59:27,711][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>`"}
[2022-06-10T15:59:27,718][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'", "/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/logstash-core/lib/logstash/agent.rb:404:in `block in converge_state'"]}
[2022-06-10T15:59:27,725][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.19.0.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.19.0.jar:?]
at Users.akjain3cisco_dot_com.Documents.ELK.logstash_minus_7_dot_15_dot_2.lib.bootstrap.environment.<main>(/Users/akjain3cisco.com/Documents/ELK/logstash-7.15.2/lib/bootstrap/environment.rb:94) ~[?:?]