# How to make filebeat ship logs in the same order as in the log file

**URL:** https://discuss.elastic.co/t/how-to-make-filebeat-ship-logs-in-the-same-order-as-in-the-log-file/89402
**Category:** Beats
**Tags:** filebeat
**Created:** [June 14, 2017, 2:56pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-ship-logs-in-the-same-order-as-in-the-log-file/89402 "2017-06-14T14:56:05Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pratheek\_k](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pratheek\_k](https://discuss.elastic.co/u/pratheek_k)
#### Post date: [June 15, 2017, 3:25pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-ship-logs-in-the-same-order-as-in-the-log-file/89402/3 "2017-06-15T15:25:35Z")

</div>

@andrewkroh

I was researching and found I dont think this cannot be done by filebeat. Please see this post [Filebeat multiline by Queue ID](https://discuss.elastic.co/t/filebeat-multiline-by-queue-id/47406)

Also, i found the below in the documentation,[https://www.elastic.co/guide/en/logstash/current/multiline.html](https://www.elastic.co/guide/en/logstash/current/multiline.html)

If you are using a Logstash input plugin that supports multiple hosts, such as the beats input plugin, you should not use the multiline codec to handle multiline events. Doing so may result in the mixing of streams and corrupted event data. In this situation, you need to handle multiline events before sending the event data to Logstash.

If you think it logstash might pick up threads in disorder how can i make in order.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-make-filebeat-ship-logs-in-the-same-order-as-in-the-log-file/89402)._
