# Ingest processor to conditonnaly DROP a document

**URL:** https://discuss.elastic.co/t/ingest-processor-to-conditonnaly-drop-a-document/71135
**Category:** Elasticsearch
**Created:** [January 10, 2017, 6:55pm UTC](https://discuss.elastic.co/t/ingest-processor-to-conditonnaly-drop-a-document/71135 "2017-01-10T18:55:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bertrand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bertrand/32/45679_2.png) [@Bertrand](https://discuss.elastic.co/u/Bertrand)
#### Post date: [January 10, 2017, 6:55pm UTC](https://discuss.elastic.co/t/ingest-processor-to-conditonnaly-drop-a-document/71135/1 "2017-01-10T18:55:50Z")

</div>

Is there a way to drop (avoid indexing) a document when it matches a given condition ?  
Say I'd like to filter documents whose property `foo` has the `bar` value...

Thx  
/bertrand

---

<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: [February 7, 2017, 6:56pm UTC](https://discuss.elastic.co/t/ingest-processor-to-conditonnaly-drop-a-document/71135/2 "2017-02-07T18:56:27Z")

</div>

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