I need help renaming multiple fields that are nested, here is my problem, I can only rename "did" within example.devices but when I attempt to rename others I would assume it's the same pattern but the results are what is below
Example of results of the filter:
"example.devices" => [
[0] {
"subnet" => "1234",
"mac" => 1234,
"identifier" => "1234",
"ip" => "1234",
"hostname" => "1234",
"example.devices.did" => 1234,
"sid" => 1234
}
here is my filter:
filter{
json {
source => "[_source][message]"
target => "parsed_message"
}
mutate{
rename => {
parsed_message" => "[example.parsed_message]"
"somethingDevices" => "example.devices"
"[example.devices][0][did]" => "[example.devices][0].[example.devices.did]"
"[example.devices][0][ip]" => "[example.devices][0][ip_TESTING]"
}
}
}