arichiardi
(Andrea Richiardi)
September 23, 2020, 6:25pm
1
Hi there,
I am learning how to use the MongoDB output pluing and trying to understand how to delete a document in a collection.
I was wondering if this is supported.
The alternative I can think of is to have a tombstone flag that tells Mongo that the document is deleted plus subsequent garbage collection.
Thank you all in advance for any answer!
Badger
September 23, 2020, 6:36pm
2
The code always calls either insert_one or insert_many. I do not see a way to do a deletion.
arichiardi
(Andrea Richiardi)
October 9, 2020, 6:08pm
3
There is a PR in logstash-output-mongo and I am working on one myself.
Had to learn ruby But this is definitely possible!