[ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main

kindly help to resolve this issue.

PS C:\Users\abhishek12.jain\ELK_Data\logstash-6.4.3> .\bin/logstash.bat -f bin/logstash-sample.conf
Sending Logstash logs to C:/Users/abhishek12.jain/ELK_Data/logstash-6.4.3/logs which is now configured via log4j2.properties
[2019-08-20T17:22:14,413][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-20T17:22:15,194][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.4.3"}
[2019-08-20T17:22:15,444][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::NoSuchMethodEr
ror", :message=>"org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;", :backtrace=>["org.logstash.execution.AbstractPipelineExt.initialize(AbstractPipelineExt.java:124 )", "org.logstash.execution.AbstractPipelineExt$INVOKER$i$3$0$initialize.call(AbstractPipelineExt$INVOKER$i$3$0$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodTh ree.call(JavaMethod.java:1186)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:743)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers .java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:974)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39) ", "C_3a_.Users.abhishek12_dot_jain.ELK_Data.logstash_minus_6_dot_4_dot_3.logstash_minus_core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek12.jain/ELK_Data/logstash-6.4.3 /logstash-core/lib/logstash/pipeline.rb:22)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.cal l(MixedModeIRMethod.java:93)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpe rs.java:974)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "C_3a_.Users.abhishek12_dot_jain.ELK_Data.logstash_minus_6_dot_4_dot_3.logstash_minus_ core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek12.jain/ELK_Data/logstash-6.4.3/logstash-core/lib/logstash/pipeline.rb:90)", "org.jruby.internal.runtime.methods.Compile dIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(C achingCallSite.java:298)", "org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)", "org. jruby.RubyClass.newInstance(RubyClass.java:1022)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite. java:145)", "C_3a_.Users.abhishek12_dot_jain.ELK_Data.logstash_minus_6_dot_4_dot_3.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(C:/Users/abhishek12.jain/ELK _Data/logstash-6.4.3/logstash-core/lib/logstash/pipeline_action/create.rb:38)", "C_3a_.Users.abhishek12_dot_jain.ELK_Data.logstash_minus_6_dot_4_dot_3.logstash_minus_core.lib.logstash.pipel ine_action.create.RUBY$method$execute$0$__VARARGS__(C:/Users/abhishek12.jain/ELK_Data/logstash-6.4.3/logstash-core/lib/logstash/pipeline_action/create.rb)", "org.jruby.internal.runtime.meth ods.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeS ite.java:145)", "C_3a_.Users.abhishek12_dot_jain.ELK_Data.logstash_minus_6_dot_4_dot_3.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(C:/Users/abhishek12.jain/ELK_Data/l ogstash-6.4.3/logstash-core/lib/logstash/agent.rb:309)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.ja va:71)", "org.jruby.runtime.Block.call(Block.java:124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call(RubyProc.java:246)", "org.jruby.internal.runtime.RubyRunnable .run(RubyRunnable.java:104)", "java.lang.Thread.run(Thread.java:748)"]}
[2019-08-20T17:22:15,538][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle Java::JavaLang::NoSuchMethodError for Pipel ineAction::Create<main>>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:103:in create'", "org/logstash/execution/ConvergeResultExt.java:34:inadd'", "C:/Users/abhishek12.ja
in/ELK_Data/logstash-6.4.3/logstash-core/lib/logstash/agent.rb:321:in `block in converge_state'"]}
[2019-08-20T17:22:15,616][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
PS C:\Users\abhishek12.jain\ELK_Data\logstash-6.4.3>

config file -
input {
file {
path => ["\Users\abhishek12.jain\ELK_Data\logstash-6.4.3\bin\cars.csv"]
start_position => "beginning"
sincedb_path => "nul"
}
}

filter {
csv {
separator => ","
columns => ["maker","model","mileage","manufacture_year","engine_displacement","engine_power","body_type","color_slug","stk_year","transmission","door_count","seat_count","fuel_type","date_created","date_last_seen","price_eur"]
}
mutate {convert => ["mileage","integer"]}
mutate {convert => ["price_eur","float"]}
}

output {
elasticsearch { hosts => ["localhost:9200"]
index => "secondindex"
document_type => "sold_cars"
}
stdout {codec => rubydebug}
}

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