theangryangel / logstash-output-jdbc

JDBC output for Logstash
MIT License
256 stars 101 forks source link

plugins in logstash 6.3.2 can not start,some error message #130

Closed CodingOX closed 6 years ago

CodingOX commented 6 years ago

when i star, error message: [2018-08-21T16:02:21,693][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<TypeError: could not coerce Fixnum to class java.lang.String>, :backtrace=> ["/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/vendor/bundle/jruby/2.3.0/gems/logstash-output-jdbc-5.3.0-java/lib/logstash/outputs/jdbc.rb:154:insetup_and_test_pool!'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/vendor/bundle/jruby/2.3.0/gems/logstash-output-jdbc-5.3.0-java/lib/logstash/outputs/jdbc.rb:127:in register'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:97:inregister'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:93:in register'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:340:inregister_plugin'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:351:in block in register_plugins'", "org/jruby/RubyArray.java:1734:ineach'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:351:in register_plugins'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:728:inmaybe_setup_out_plugins'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:361:in start_workers'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:288:inrun'", "/Users/liuchunfu/develop/elk/bin/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:248:in block in start'"], :thread=>"#<Thread:0x5a943232 run>"} [2018-08-21T16:02:21,721][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}

what can i do ?

theangryangel commented 6 years ago

Can you paste a copy of your config please? Specifically the jdbc output part.

Please note I’ve not yet had time to test the plugin with 6.3 and I do not know if there are compatibility issues yet.

Sent from my iPhone

On 21 Aug 2018, at 09:31, CodingNew notifications@github.com wrote:

Fixnum to class java.lang.String

CodingOX commented 6 years ago

@theangryangel Thanks, The reason for this mistake is my configuration file is wrong. After my tests, everything worked well.