Hi, I used logstash with elasticsearch for a few days now, everything was working fine: with logstash, I was querying a MySQL table and indexing it in elasticsearch to visualize it in Kibana. Then, logstash stopped working suddenly. When running
// \bin\logstash.bat -f simple_config.conf
I started getting these errors :
//[ERROR][logstash.javapipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<TypeError: no implicit conversion of Integer into String>, :backtrace=>["uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date/format.rb:335:in _parse'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/date.rb:734:in
parse'", "C:/ELK/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin_mixins/jdbc/value_tracking.rb:87:in set_value'", "C:/ELK/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin_mixins/jdbc/value_tracking.rb:36:in
initialize'", "C:/ELK/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/plugin_mixins/jdbc/value_tracking.rb:29:in build_last_value_tracker'", "C:/ELK/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-jdbc-4.3.13/lib/logstash/inputs/jdbc.rb:216:in
register'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:192:in block in register_plugins'", "org/jruby/RubyArray.java:1792:in
each'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:191:in register_plugins'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:292:in
start_inputs'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:248:in start_workers'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:146:in
run'", "C:/ELK/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:105:in `block in start'"], :thread=>"#<Thread:0x3e6f40c3 run>"}
I uninstall all the elastic stack, MySQL, I changed the query to another one, I even tried to simply output it using stdout, but I always get an error.
Here is my configuration file:
// input {
jdbc {
jdbc_driver_library => "mysql-connector-java-8.0.11.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/crretriever"
jdbc_user => "xxxx"
jdbc_password => "xxxx"
statement => "SELECT * FROM allbuilds;"
}
}
output {
stdout {
codec => json
}
}
Thanks for your help