# Ingest pipeline: how to ignore log line based on condition

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-how-to-ignore-log-line-based-on-condition/74812>\
**Category:** Elasticsearch\
**Created:** [February 12, 2017, 3:18pm UTC](https://discuss.elastic.co/t/ingest-pipeline-how-to-ignore-log-line-based-on-condition/74812 "2017-02-12T15:18:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![John16](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@John16](https://discuss.elastic.co/u/John16)\
**Post date:** [February 13, 2017, 1:51pm UTC](https://discuss.elastic.co/t/ingest-pipeline-how-to-ignore-log-line-based-on-condition/74812/3 "2017-02-13T13:51:51Z")

</div>

> [@warkolm](#):
>
> you can do it in filebeat though

Yes, but filebeat has no ability to parse line against regexp (to extract filter field).

Look at [Exported fields in filebeat processors](https://discuss.elastic.co/t/exported-fields-in-filebeat-processors/74815)  
which suggests to use ingest instead of filebeat 🙂

I think it would be nice (and easy) to implement an ability to ignore a line in ingest depending on some condition (after parsing a line against regexp).

---

_[View the full topic](https://discuss.elastic.co/t/ingest-pipeline-how-to-ignore-log-line-based-on-condition/74812)._
