Parsing nested json

I need help in parsing a nested array data
'''
"abc" => [
[0] {
"obj" => "78",
"val" => "0/100",
"name" => "xyx",
"email" => "xyz@gmail.com"
},
[1] {
"obj" => "78",
"val" => "0/100",
"name" => "xyx",
"email" => "xyz@gmail.com"
}
]

'''
so far I have used
'''
mutate {
split => ["abc", "."]
add_field => { "shortHostname" => "%{abc}" }
add_field => { "new_filed" => "%{abc[0][obj]}" }
}
'''
no luck

mutate+split is used to break a string into an array. If you want to break an array into multiple events then use a split filter instead.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.