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