I need to ship logs from 2 apps into ElasticSearch/Kibana, one of them is a Symfony app that generates logs in /var/www/html/logs/*.log and they are displayed in the correct format on ES/Kibana. While the other is a NodeJS based app that generates the logs in the format of txt file, but in Kibana, it's showing only the first line of the log content in the message field.
Below is a sample log.txt file:
fetchBlog called
request.body
[{"author":"1","permlink":"2"},"user435433","2020-5-1-2-43-53-441"]
Error:
[{"res":null,"error":"1"},{"message":"2","type":"3","errno":"4","code":"4"},"request to http://10.0.0.222:9675/ failed, reason: connect ECONNREFUSED 10.0.0.222:9675","system","ECON$"}]
And the output is just showing like below:
So, how to fix the formatting issue to parse all of the contents of the txt log file into ES/Kibana