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

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 ..

        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.....

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

1 Like

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

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