Welcome back. How are you currently pulling the records from MongoDB to Elasticsearch? Are you using the JDBC input plugin? Or an alternative approach.
That is correct. The mongodb input looks for items with an _id value larger than the last _id it retrieved. The _id field is the immutable identifier of a document, so if the document is updated then the _id does not change. The mongodb input will never see it. Similarly for deletions.
You may be able to implement the tracking of updates in mongodb using change streams, but that would be outside of logstash.
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.