# Text Files received by Logstash from Filebeat is not same as Source Files

**URL:** <https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512>\
**Category:** Logstash\
**Created:** [May 31, 2021, 1:20pm UTC](https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512 "2021-05-31T13:20:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Resington\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/resington_r/32/85143_2.png) [@Resington\_R](https://discuss.elastic.co/u/Resington_R)\
**Post date:** [May 31, 2021, 1:20pm UTC](https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512/1 "2021-05-31T13:20:25Z")

</div>

Hi everyone... I am transferring text files from my Application Server to Logstash Server using below logstash config file. The files transmitted are received perfectly, but some of the lines in the received text files are shifted up and down. Can anyone please tell me... how to correct this problem. I need the received files same as transmitted files ..

```auto
        input {  
            beats {   
                codec => plain
                port => "5044"       
            }   
        }

        filter {
            grok {
                match => ["[log][file][path]", "%{GREEDYDATA}\\%{GREEDYDATA:filename}.txt"]
            }
        }

        output {
            file {
                codec => line {
                format => "%{message}"
                }
                path => "E:/logs/destination/%{filename}.txt"
            }
        }

```

Source File Content..

John  
2021-02-11  
17:22:22

Destination File Content...

17:22:22  
John  
2021-02-11

Thanks in advance.....

---

<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:** [May 31, 2021, 2:26pm UTC](https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512/2 "2021-05-31T14:26:08Z")

</div>

You will need to set pipeline.workers to 1 and make sure pipeline.ordered is set to auto or true.

---

<div class="post-metadata">

**Author:** ![Resington\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/resington_r/32/85143_2.png) [@Resington\_R](https://discuss.elastic.co/u/Resington_R)\
**Post date:** [May 31, 2021, 7:32pm UTC](https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512/3 "2021-05-31T19:32:04Z")

</div>

Thanks a lot Badger... It works like Charm....

---

<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:** [June 28, 2021, 7:32pm UTC](https://discuss.elastic.co/t/text-files-received-by-logstash-from-filebeat-is-not-same-as-source-files/274512/4 "2021-06-28T19:32:29Z")

</div>

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