Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x2367ca72, :exception=>#<ArgumentError: wrong number of arguments (2 for 1)>} #68

Open
PaulCheriyan009 opened this issue Nov 20, 2019 · 2 comments

Comments

@PaulCheriyan009
Copy link

PaulCheriyan009 commented Nov 20, 2019

I wand merge data from MySQL to mongo
this my
input {
jdbc {jdbc_connection_string => "jdbc:mysql://fgh:3306/fgh?useSSL=false"jdbc_user => "fghfgh"
jdbc_password => "fghfghhfgfgh"jdbc_driver_library => "/dfghmysql-connector-java-8.0.18.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"statement => "SELECT * FROM fdh"clean_run => true}}
output {mongodb {id => "dddddddd"collection => "dfd"database => "springboottest" uri => "mongodb://localhost:27017"codec => "json"# generateId => trueisodate => true}}

the version i using

  1. logstash-6.2.2
  2. logstash-output-mongodb (3.1.6)
  3. logstash-input-jdbc (4.3.3)

gettiing error

[2019-11-20T13:34:48,843][WARN ][logstash.outputs.mongodb ] Failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x2367ca72, :exception=>#<ArgumentError: wrong number of arguments (2 for 1)>}
[2019-11-20T13:34:49,297][WARN ][logstash.shutdownwatcher ] {"inflight_count"=>531, "stalling_thread_info"=>{"other"=>[{"thread_id"=>34, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>35, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>36, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>37, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>38, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>39, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>40, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:21:in pop'"}, {"thread_id"=>41, "name"=>nil, "current_call"=>"[...]/vendor/bundle/jruby/2.3.0/gems/logstash-output-mongodb-3.1.6/lib/logstash/outputs/mongodb.rb:123:in sleep'"}]}}

stackoverflow link
elastic

@PaulCheriyan009 PaulCheriyan009 changed the title ailed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x2367ca72, :exception=>#<ArgumentError: wrong number of arguments (2 for 1)>} failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x2367ca72, :exception=>#<ArgumentError: wrong number of arguments (2 for 1)>} Nov 20, 2019
@erdemaydemir
Copy link

+1

@rmmorrison
Copy link
Contributor

Same as #65, #64 and #60. Pull request #66 addresses this issue, but until it's merged you'll need to clone and build the plugin yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants