Unable to send log files where newline character is not present

The log data which I am trying to send is a single line in file similar to the following
[{"empid" : "1", "empname": "anirban", "location":"India"}]

It is not having newline at the end.

How to work for this? If this type of data is generated by the application

Unfortunately, Filebeat requires a newline at the end of each log. Otherwise, it cannot tell if a line is finished or not. I suggest you add a newline character from a script.

Thanks for the response. But it would have been better if filebeat make an enhancement to read the files not having new line character at the end

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