Open ghstahl opened 3 months ago
Hi @ghstahl , thanks for reaching this poc repo.
For what I have checked, it seems we don't have official plugin for mongodb to input to elastic. And by refering to the plugin I used, I found this: https://github.com/phutchins/logstash-input-mongodb/pull/60
Seems like the plugin issue like you said. Please let me know if you find better plugin for solving the issue if any
I successfully built this project and modified the mongodb.conf to point to my collection.
My collection (usage_normal) with 3 entries.
This could be a mongo plugin problem. What happens is that the first item in the collection is dropped. It doesn't matter how many are in there. 1..n.
If it's only 1, then nothing gets into elastic search.
Here you can see only 2 got in.
The last logs in log stash, reference the document that doesn't make it.
It looks like to me that it uses the first one to establish the index and then throws it away.