How do I install logstash ver 6.2.3 by installing from package Repositories

Hi.
I installed logstash by package repositories.
It was ver 6.2.4. But, if logstash version 6.2.4, there is an Error like this:

[ERROR] 2018-05-16 14:00:23.797 [Ruby-0-Thread-1: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22] agent - Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: LogStash::PipelineAction::Create/pipeline_id:main, action_result: false", :backtrace=>nil}
[ERROR] 2018-05-16 14:00:23.824 [LogStash::Runner] Logstash - java.lang.IllegalAccessError: tried to access class com.mysql.jdbc.NonRegisteringDriver$ConnectionPhantomReference from class com.mysql.jdbc.NonRegisteringDriver

But, if logstash version 6.2.3, there isn't an Error. So, I find how install ver 6.2.3 by installing from package repositories?

Can you share your config? Perhaps we can fix the underlying issue.

Hi @warkolm. Thanks for your reply.

My config is too long, so I can't write all of config.

So.. A part of config about mysql.jdbc.Driver Error like this :

if([data_info][protocol] == "tcp"){
jdbc_streaming {
jdbc_driver_library => "/usr/share/logstash/vendor/jar/jdbc/mysql-connector-java-5.1.46-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/Jecheon?useSSL=false"

  	jdbc_user => "****"
  	jdbc_password => "*******"

  	statement => "SELECT CID, OTC2_CID FROM TB_PVC WHERE CID = :tcpCid LIMIT 1;"
  	parameters => {
  		"tcpCid" => "tcp_cid"
  	}

  	target => "matchingCid"		
  }

}

It depends on what OS you are on, but look at version pinning/selection.

It might also be worth raising an issue on Github with as much detail as possible so we can make sure it's not a reversion.

Ok! Thank you!

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