Hi,
I manage to parse JSON array with logstash (Returns/Row)
My configuration is
...
filter {
split {
field => "Returns[Row]"
add_field => [ "name" , "%{Returns.Row.name}"]
}
}
output {
stdout { codec => "rubydebug" }
}
But I get Returns.row.xxx as output field name. So I try the add field option wihtout success
Any clue ?
Here is the output i get
{
"Returns" => {
"Row" => {
"name" => "LOCAL.ESB.MONITORING_ROUTER.AuditNotification",
"pendingMessageCount" => "106"
}
},
"@version" => "1",
"@timestamp" => "2015-10-23T16:25:54.534Z",
"name" => "%{Returns.Row.name}"
}
{
"Returns" => {
"Row" => {
"name" => "LOCAL.ESB.CORE_AUDIT.LogEvent",
"pendingMessageCount" => "138"
}
},
"@version" => "1",
"@timestamp" => "2015-10-23T16:25:54.534Z",
"name" => "%{Returns.Row.name}"
}
Thanks for your help