Access nested JSON Field in Logstash

后端 未结 1 1983
情话喂你
情话喂你 2021-01-14 19:23

I have a Problem with accessing a nested JSON field in logstash (latest version).

My config file is the following:

input {
  http {
    port => 50         


        
1条回答
  •  说谎
    说谎 (楼主)
    2021-01-14 20:26

    I found a solution. Credits go to jpcarey (Elasticsearch Forum)

    I had to remove codec => "json". That leads to another data structure. statements is now an array and not an object. So I needed to change %{[statements][authority][name]} to %{[statements][0][authority][name]}. That works without problems.

    If you follow the given link you'll also find an better implementation of my mutate filters.

    0 讨论(0)
提交回复
热议问题