I tried the way you specified and outputing to file, i see it is trying to parse line by line and failing, below is the few line of output file.
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":"{\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:13.888Z"}
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":" "environments": [ {\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:13.945Z"}
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":" "dimensions": [\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:13.956Z"}
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":" {\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:13.972Z"}
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":" "name": " sum(total_response_time)",\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:14.305Z"}
{"path":"D:\ELK\Test\test.json","tags":["_jsonparsefailure"],"message":" "values": [ {\r","type":"json","@version":"1","host":"A2ML20110","@timestamp":"2018-03-15T12:40:14.371Z"}
Use a multiline codec to join the lines of the file to a single event (you should be able to find a working example in previous posts), then use a json filter to parse the resulting JSON string.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.