# Logstash config to ingest data by filtering the data that is already present in another index in ES

**URL:** https://discuss.elastic.co/t/logstash-config-to-ingest-data-by-filtering-the-data-that-is-already-present-in-another-index-in-es/255692
**Category:** Logstash
**Created:** [November 17, 2020, 12:29pm UTC](https://discuss.elastic.co/t/logstash-config-to-ingest-data-by-filtering-the-data-that-is-already-present-in-another-index-in-es/255692 "2020-11-17T12:29:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sivajanani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivajanani/32/75053_2.png) [@Sivajanani](https://discuss.elastic.co/u/Sivajanani)
#### Post date: [November 17, 2020, 12:29pm UTC](https://discuss.elastic.co/t/logstash-config-to-ingest-data-by-filtering-the-data-that-is-already-present-in-another-index-in-es/255692/1 "2020-11-17T12:29:46Z")

</div>

Hello All,  
I have a requirement to ingest only the data which already exists in another index. For example I have a index in ES like index1 =[source=a,time=b,value=c,id=d] and data set to be ingested like sample=[value=c,value=d].

I wanted to ingest only value=c data to ES via logstash since that is also present in index1.  
Is there any filter which checks for a for a field value or any other ways exists to achieve this?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 15, 2020, 12:30pm UTC](https://discuss.elastic.co/t/logstash-config-to-ingest-data-by-filtering-the-data-that-is-already-present-in-another-index-in-es/255692/2 "2020-12-15T12:30:04Z")

</div>

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