Failed to send event to MongoDB, retrying in 3 seconds {:event=>#<LogStash::Event:0x2545634>, :exception=>#<ArgumentError: wrong number of arguments

How to fix this problem?
input {
jdbc {
jdbc_driver_library => "/etc/mysql-connector/mysql-connector-java-5.1.46/mysql-connector-java-5.1.46-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "XXXXXXXX"
jdbc_user => "XXXXXXXX"
jdbc_password => "XXXXXXX"
schedule => "*/10 * * * * *"
statement => "XXXXXXX"
clean_run => true
}
}

output {
mongodb {
collection => "test"
database => "xxxxxx"
uri => "mongodb://xxxxxxx:xxxx/xxxxx"
codec => "json"
generateId => true
}
}

please i need help to fix this problem

What is the stack trace associated with that error?

Failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x2545634, :exception=>#<ArgumentError: wrong number of arguments

I asked for the stack trace, not the exception message. The stack trace specifies exactly where in the logstash code the exception occurred.

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