Logstash does not parse json

后端 未结 3 1426
滥情空心
滥情空心 2020-12-09 12:37

When i see results in Kibana, i see that there are no fields from JSON, more over, message field contains only \"status\" : \"FAILED\".

Is

3条回答
  •  被撕碎了的回忆
    2020-12-09 13:09

    Reading in a file containing a JSON array is way harder than it should be. Below is a working pipeline configuration

    input {
      exec {
        command => "cat /path/file_containing_json_array.txt"
        codec => "json"
        interval => 3600
      }
    }
    
    output {
      stdout {
        codec => rubydebug
      }
    }
    

提交回复
热议问题