Below is the error while i run .CONF file logstash -f logconfig.conf
C:\Users\Priyesh.Chourasia\Desktop\ElkOld\logstash-6.5.2\bin>logstash -f logconf
ig.conf
Sending Logstash logs to C:/Users/Priyesh.Chourasia/Desktop/ElkOld/logstash-6.5.
2/logs which is now configured via log4j2.properties
[2019-03-20T17:07:59,402][INFO ][logstash.setting.writabledirectory] Creating di
rectory {:setting=>”path.queue”, :path=>”C:/Users/Priyesh.Chourasia/Desktop/ElkO
ld/logstash-6.5.2/data/queue”}
[2019-03-20T17:07:59,415][INFO ][logstash.setting.writabledirectory] Creating di
rectory {:setting=>”path.dead_letter_queue”, :path=>”C:/Users/Priyesh.Chourasia/
Desktop/ElkOld/logstash-6.5.2/data/dead_letter_queue”}
[2019-03-20T17:07:59,515][WARN ][logstash.config.source.multilocal] Ignoring the
‘pipelines.yml’ file because modules or command line options are specified
[2019-03-20T17:07:59,567][INFO ][logstash.runner ] Starting Logstash {”
logstash.version”=>”6.5.2″}
[2019-03-20T17:07:59,597][INFO ][logstash.agent ] No persistent UUID f
ile found. Generating new UUID {:uuid=>”16a82f1b-11cd-4380-9928-77ff7321e06a”, :
path=>”C:/Users/Priyesh.Chourasia/Desktop/ElkOld/logstash-6.5.2/data/uuid”}
[2019-03-20T17:08:00,407][ERROR][logstash.agent ] Failed to execute ac
tion {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>”J
ava::JavaLang::NoSuchMethodError”, :message=>”org.apache.commons.codec.binary.He
x.encodeHexString([B)Ljava/lang/String;”, :backtrace=>[“org.logstash.execution.A
bstractPipelineExt.initialize(AbstractPipelineExt.java:124)”, “org.logstash.exec
ution.AbstractPipelineExt$INVOKER$i$3$0$initialize.call(AbstractPipelineExt$INVO
KER$i$3$0$initialize.gen)”, “org.jruby.internal.runtime.methods.JavaMethod$JavaM
ethodThree.call(JavaMethod.java:1186)”, “org.jruby.internal.runtime.methods.Java
Method$JavaMethodN.call(JavaMethod.java:743)”, “org.jruby.ir.runtime.IRRuntimeHe
lpers.instanceSuper(IRRuntimeHelpers.java:983)”, “org.jruby.ir.runtime.IRRuntime
Helpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:974)”, “org.jruby.ir.target
s.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)”, “C_3a_.Users
.Priyesh_dot_Chourasia.Desktop.ElkOld.logstash_minus_6_dot_5_dot_2.logstash_minu
…
…
[2019-03-20T17:08:00,462][FATAL][logstash.runner ] An unexpected error
occurred! {:error=>#<LogStash::Error: Don't know how to handle Java::JavaLang:: NoSuchMethodError for PipelineAction::Create>, :backtrace=>[“org/logsta
sh/execution/ConvergeResultExt.java:103:in create'”, “org/logstash/execution/Co nvergeResultExt.java:34:inadd'”, “C:/Users/Priyesh.Chourasia/Desktop/ElkOld/lo
gstash-6.5.2/logstash-core/lib/logstash/agent.rb:329:in `block in converge_state
‘”]}
[2019-03-20T17:08:00,550][ERROR][org.logstash.Logstash ] java.lang.IllegalSta
teException: Logstash stopped processing because of an error: (SystemExit) exit
below is the jar in my logstash folder C:\Users\Priyesh.Chourasia\Desktop\ElkOld\logstash-6.5.2\logstash-core\lib\jars
commons-codec-1.11 which has below method i’m confused which version is conflicting checked with version 1.4 to 1.12 version every jar has the below common method.
public static String encodeHexString(byte data)
{
return new String(encodeHex(data));
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.