Updating records and indices

Is there a way to update records in indices if they don't exist. Currently I've seen that values changed within an index get updated, however, if a record doesn't exist in a file, for example, the record is not removed. How can I update elastic or the logstash config files to update records if they no longer exist. (Both for files and for database ingestions.)

How about for an entire index. What if I need to remove the entire index every time because we don't have a unique document id but we need all the records. In other words we don't want the records to accumulate because we don't have a document id. We would just like to have the ones either currently used in the files or queries given in the logstash files.

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