# Logstash filter to drop data

**URL:** <https://discuss.elastic.co/t/logstash-filter-to-drop-data/106060>\
**Category:** Logstash\
**Created:** [November 1, 2017, 4:23pm UTC](https://discuss.elastic.co/t/logstash-filter-to-drop-data/106060 "2017-11-01T16:23:25Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 8, 2017, 4:12pm UTC](https://discuss.elastic.co/t/logstash-filter-to-drop-data/106060/21 "2017-11-08T16:12:09Z")

</div>

In the conditional that wraps the drop filter, don't match the `datetimein` field against the regexp. You've destroyed its contents with the previous filter operations. Match the `message` field.

---

<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 6, 2017, 4:12pm UTC](https://discuss.elastic.co/t/logstash-filter-to-drop-data/106060/22 "2017-12-06T16:12:35Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/logstash-filter-to-drop-data/106060.md?page=1)
