Mongo Output document deletion

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!

The code always calls either insert_one or insert_many. I do not see a way to do a deletion.

1 Like

There is a PR in logstash-output-mongo and I am working on one myself.

Had to learn ruby :smiley: But this is definitely possible!

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