# File input plugin , read file between to date using ignore older

**URL:** <https://discuss.elastic.co/t/file-input-plugin-read-file-between-to-date-using-ignore-older/357485>\
**Category:** Logstash\
**Created:** [April 16, 2024, 8:05am UTC](https://discuss.elastic.co/t/file-input-plugin-read-file-between-to-date-using-ignore-older/357485 "2024-04-16T08:05:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo23](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@Leo23](https://discuss.elastic.co/u/Leo23)\
**Post date:** [April 16, 2024, 8:05am UTC](https://discuss.elastic.co/t/file-input-plugin-read-file-between-to-date-using-ignore-older/357485/1 "2024-04-16T08:05:29Z")

</div>

Hello, i want to read file in logstash which are been modify between 80 and 50 weeks ago. How can I do that?

```auto
input { 
    file { path => "x./y/*.log"
            start_position => "beginning"
            ignore_older => "80 weeks"
            file_sort_by => "last_modified"
            codec => multiline {
               pattern => "^\[%{TIMESTAMP_ISO8601}\]"
               negate => true
               what => "previous"
               auto_flush_interval => 10
        }
    }
  }

```
