angelma83
(angel manuel)
January 18, 2020, 5:44pm
1
HI everybody,
i am using logstash-input-mongodb, and i have the following mistake,
[logstash.inputs.mongodb ] MongoDB Input threw an exception, restarting {:exception=>#<BSON::ObjectId::Invalid: '1' is an invalid ObjectId.>}
Please can anybody help me.
thanks in advance
best regards
Ramicoh
January 21, 2020, 10:33pm
2
There are a few options.
You would need to check if the ID is a valid one.
See this question:
mongodb, morphia
You could also remove and add this ID again using db.collection.remove({"_id":"yourInvalidId"})
.
Let me know if this helped
system
(system)
Closed
February 18, 2020, 10:38pm
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.