I have a Magento2 instance for which I collect the logs using prospectors in filebeat-5.2.1. This is happening on a docker container based on ubuntu xenial (16.04).
The Magento2 report is a valid json file with a single line, but contain no newline at the end of the string which results in logs not being sent - https://www.elastic.co/guide/en/beats/filebeat/current/faq.html#newline-character-required-eof
Tried with single/multi line, tried changing the close_timeout and a few other suggestions found online but nothing works so far.
Could you provide some suggestions on how to approach it?