# Is it possible to impose order for the input files?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-impose-order-for-the-input-files/229255>\
**Category:** Logstash\
**Created:** [April 22, 2020, 12:14pm UTC](https://discuss.elastic.co/t/is-it-possible-to-impose-order-for-the-input-files/229255 "2020-04-22T12:14:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnrdammu](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mnrdammu](https://discuss.elastic.co/u/mnrdammu)\
**Post date:** [April 22, 2020, 12:14pm UTC](https://discuss.elastic.co/t/is-it-possible-to-impose-order-for-the-input-files/229255/1 "2020-04-22T12:14:36Z")

</div>

Hi All,  
I have a usecase, where I have to read two files (csv and txt) , using two file inputs. Then in the filter section, I need to do some filtering on the contents of csv file, based on the field derived from txt file.

This seems to work fine in terms of , reading and when there is update in the contents of the files, it capture the changes.

However, every time when I run logstash command, the csv file is read before the txt file and so my logic for filtering in the filter section is skipped.

I was wondering if there is a way to set order to the input files or force the csv file read to wait for the txt file read to start.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 22, 2020, 3:33pm UTC](https://discuss.elastic.co/t/is-it-possible-to-impose-order-for-the-input-files/229255/2 "2020-04-22T15:33:44Z")

</div>

> [@mnrdammu](#):
>
> I was wondering if there is a way to set order to the input files

No, there is not.

---

<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:** [May 20, 2020, 3:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-impose-order-for-the-input-files/229255/3 "2020-05-20T15:46:40Z")

</div>

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