Good Day. I am trying to parse the following value from a log:
{
"EMAIL": "PII REMOVED BY STAFF"
}
Using the following Synatx:
filter {
mutate {
replace => {
"EMAIL" => ""
}
}
mutate { replace => {"event.idm.read_only_udm.metadata.event_type" => "GENERIC_EVENT"
}
}
json {
source => "message"
array_function => "split_columns"
}
if [email] != "" {
mutate {
replace => {
"principal.user.email_addresses" => "%{EMAIL}"
}
}
mutate {
merge => {
"@output" => "event"
}
}
}
}
But I get no results for the principal.user.email_addresses, I feel like there is something really simple that I am overlooking here.
