# Logstash ignore\_older opposite

**URL:** <https://discuss.elastic.co/t/logstash-ignore-older-opposite/327279>\
**Category:** Logstash\
**Created:** [March 8, 2023, 2:03pm UTC](https://discuss.elastic.co/t/logstash-ignore-older-opposite/327279 "2023-03-08T14:03:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)\
**Post date:** [March 8, 2023, 2:03pm UTC](https://discuss.elastic.co/t/logstash-ignore-older-opposite/327279/1 "2023-03-08T14:03:30Z")

</div>

Hello,

I would like Logstash to read only files older than one day. How can I do that? It would be sort of the opposite of "ignore\_older".

Thx

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [March 8, 2023, 2:13pm UTC](https://discuss.elastic.co/t/logstash-ignore-older-opposite/327279/2 "2023-03-08T14:13:47Z")

</div>

You should set:

```auto
stat_interval => "1 hour"
discover_interval => 24

```

It's explained [here](https://discuss.elastic.co/t/logstash-file-input-observation/37139) and [here](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-discover_interval)

---

<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:** [April 5, 2023, 2:14pm UTC](https://discuss.elastic.co/t/logstash-ignore-older-opposite/327279/3 "2023-04-05T14:14:44Z")

</div>

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