# Possible to Control Order that Beats Processes and Ships Files/Log Lines?

**URL:** https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764
**Category:** Beats
**Tags:** filebeat
**Created:** [October 12, 2020, 12:53pm UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764 "2020-10-12T12:53:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![NomadicCodeGuy](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NomadicCodeGuy](https://discuss.elastic.co/u/NomadicCodeGuy)
#### Post date: [October 12, 2020, 12:53pm UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764/1 "2020-10-12T12:53:40Z")

</div>

I am using Beats to ship entries from log files to Logstash. I have aggregations in Logstash that are order dependent. I cannot seem to find a way to control the order that Beats processes my log files or the individual entries within the log files. Is this even possible or should I think of a new way to accomplish my task?

---

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [October 12, 2020, 1:30pm UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764/2 "2020-10-12T13:30:04Z")

</div>

Did you see the note about [setting workers to 1](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html#plugins-filters-aggregate-description)?

---

<div class="post-metadata">

### Author: ![NomadicCodeGuy](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NomadicCodeGuy](https://discuss.elastic.co/u/NomadicCodeGuy)
#### Post date: [October 12, 2020, 2:41pm UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764/3 "2020-10-12T14:41:07Z")

</div>

Yes I am using this setting in Logstash. When I do not use Beats to ship and just read from filepath in Logstash file input, the order is good. When I use Beats as input, the order is changed on some entries. Is there a similar setting to control the order in Beats?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 13, 2020, 4:59am UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764/4 "2020-10-13T04:59:07Z")

</div>

What does your filebeat config look like?

---

<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: [November 10, 2020, 6:59am UTC](https://discuss.elastic.co/t/possible-to-control-order-that-beats-processes-and-ships-files-log-lines/251764/5 "2020-11-10T06:59:10Z")

</div>

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