MongoDB failed to send event

Hi,

I am getting this error on logstash

[WARN ] 2019-05-01 23:01:42.484 [[main]>worker1] mongodb - Failed to send event to MongoDB, retrying in 3 seconds {:event=>#LogStash::Event:0x527d46ff, :exception=>java.lang.NullPointerException

output {

mongodb {
codec => "json"
uri => "mongodb://localhost:27017/foo"
database => "foo"
collection => "nop"
generateId => true
}

}

The problem was on the mutate statemenet,
it didn't work when I tried to remove @timestamp, @version on mutate statement

don't work for
remove_field: ["@timestamp"]

That does not surprise me. Some outputs require @timestamp to exist.

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