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
There are a few options. You would need to check if the ID is a valid one. See this question:
You could also remove and add this ID again using db.collection.remove({"_id":"yourInvalidId"}).
db.collection.remove({"_id":"yourInvalidId"})
Let me know if this helped
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.