# Generator input is unordered

**URL:** <https://discuss.elastic.co/t/generator-input-is-unordered/171628>\
**Category:** Logstash\
**Created:** [March 10, 2019, 12:51pm UTC](https://discuss.elastic.co/t/generator-input-is-unordered/171628 "2019-03-10T12:51:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [March 10, 2019, 12:51pm UTC](https://discuss.elastic.co/t/generator-input-is-unordered/171628/1 "2019-03-10T12:51:32Z")

</div>

According to [this](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-generator.html#plugins-inputs-generator-lines) documentation and logic in general I assume this input should process specified lines one by one in the specified order, not random or anything else.

But it it's output is in random order.

Also the text from the above link contain a mistake. It should be:  
"The above will emit `line 1` then `line 2` then `line **3** ` , then `line 1` , etc…"

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 10, 2019, 12:54pm UTC](https://discuss.elastic.co/t/generator-input-is-unordered/171628/2 "2019-03-10T12:54:10Z")

</div>

Once the filter section gets hold of the data it is possible that it will be processed in parallel by multiple threads, so at that point ordering is no longer guaranteed.

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [March 10, 2019, 12:55pm UTC](https://discuss.elastic.co/t/generator-input-is-unordered/171628/3 "2019-03-10T12:55:50Z")

</div>

Even if there is no filter section? I have only input with generator and output with stdout

---

<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 7, 2019, 12:55pm UTC](https://discuss.elastic.co/t/generator-input-is-unordered/171628/4 "2019-04-07T12:55:57Z")

</div>

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