# Drop old messages

**URL:** https://discuss.elastic.co/t/drop-old-messages/111775
**Category:** Logstash
**Created:** [December 14, 2017, 1:12pm UTC](https://discuss.elastic.co/t/drop-old-messages/111775 "2017-12-14T13:12:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sbampa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sbampa](https://discuss.elastic.co/u/sbampa)
#### Post date: [December 14, 2017, 1:12pm UTC](https://discuss.elastic.co/t/drop-old-messages/111775/1 "2017-12-14T13:12:36Z")

</div>

Hi all,  
i'm reading with logstash several files and after send to ES.  
I this files i have also old log lines with timestamps. How can avoid to send to ES the rows with old timestamp?

I can use drop filter, but what is the condition to check?

BR

---

<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: [December 18, 2017, 7:06pm UTC](https://discuss.elastic.co/t/drop-old-messages/111775/2 "2017-12-18T19:06:56Z")

</div>

Check out the age filter ([https://www.elastic.co/guide/en/logstash/5.4/plugins-filters-age.html](https://www.elastic.co/guide/en/logstash/5.4/plugins-filters-age.html)).

---

<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: [January 15, 2018, 7:06pm UTC](https://discuss.elastic.co/t/drop-old-messages/111775/3 "2018-01-15T19:06:56Z")

</div>

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