I am trying to overwrite as well as add some entity data for enrichement.
I am trying the following parser extension to the Azure AD Organizational Context
filter {
json {
source => "message"
array_function => "split_columns"
on_error => "not_json"
}
mutate {
replace => {
"username" => "%{userPrincipalName}"
}
on_error => "no_upn"
}
if ![no_upn] {
mutate {
replace => {
# "aadcontext_event.idm.read_only_udm.principal.user.userid" => "%{username}"
"$entity.user.userid" => "%{username}"
}
}
}
mutate {
replace => {"employeetype" => "%{extension_29d326fe90944c75bdc8889fcfa9a2ea_extensionAttribute10}"}
on_error => "no_extenstionattribute10"
}
if ![no_extenstionattribute10] {
mutate {
replace => {
"asset_attribute_roles_name" => "%{employeetype}"
}
}
mutate {
merge => { "$entity.asset.attribute.roles.name" => "asset_attribute_roles_name" }
}
#about.asset.attribute.roles.name
}
# mutate { merge => {"aadcontext.idm.entity" => "$entity" } }
# mutate { merge => { "@output" => "aadcontext"} }
statedump {
label => "Post Merge"
}
}
I can’t figure out how to merge this though?
ield \"idm\": index 0: recursive rawDataToProto failed: field \"entity\": index 0: received non-map raw output for sub-message field"
