@magnusbaeck, I found this earlier post of yours (Help parsing nested JSON with dynamic top key) and tried to use this but somehow it is not working. This is the updated configuration
input {
stdin {}
}
filter {
ruby {
code => "
event.to_hash.clone.each_value{|v|
if v.is_a? Hash
v.each_pair{|k,v|
print event[k] = v
}
end
}
"
}
}
output {
stdout { codec => rubydebug }
}