# Index files according to pattern or interval name

**URL:** <https://discuss.elastic.co/t/index-files-according-to-pattern-or-interval-name/172728>\
**Category:** Logstash\
**Created:** [March 18, 2019, 8:45am UTC](https://discuss.elastic.co/t/index-files-according-to-pattern-or-interval-name/172728 "2019-03-18T08:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Post date:** [March 18, 2019, 8:45am UTC](https://discuss.elastic.co/t/index-files-according-to-pattern-or-interval-name/172728/1 "2019-03-18T08:45:35Z")

</div>

is there a way o can index files on a name interval, for example : I have these file  
2015125201\_test.csv  
2015125211\_test.csv  
2015125221\_test.csv  
2015125231\_test.csv  
2015125241\_test.csv  
2015125301\_test.csv  
2015125311\_test.csv

I want to index in once logstash instance from 2015125201\_test.csv to 015125231\_test.csv  
and the other logstash instance 2015125241\_test.csv to 2015125311\_test.csv

---

<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 15, 2019, 8:45am UTC](https://discuss.elastic.co/t/index-files-according-to-pattern-or-interval-name/172728/2 "2019-04-15T08:45:40Z")

</div>

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