UDM.metadata not present
The event that reached @output has no metadata.event_type. Usually a typo in the event path, a different prefix than the one you merge, or a branch that never ran.
The error
LOG_PARSING_GENERATED_INVALID_EVENT: "generic::invalid_argument: UDM.metadata not present"Why it happens
Every UDM event needs metadata.event_type. This error means the object you merged into @output had none.
Typical reasons: a typo in the path (event.id.read_only_udm instead of event.idm.read_only_udm); fields set on event1 but event merged into @output; or event_type set only inside an if branch that did not run for this log.
How to fix it
- Set a safe default (GENERIC_EVENT) at the top of the parser, then overwrite it once you know the real type.
- Use one prefix everywhere and merge that same name into @output, once, at the very end.
Works:
filter {
mutate {
replace => {
"event.idm.read_only_udm.metadata.event_type" => "GENERIC_EVENT"
"event.idm.read_only_udm.metadata.vendor_name" => "Acme"
"event.idm.read_only_udm.metadata.product_name" => "Gateway"
}
}
# ... parsing and mapping ...
mutate { merge => { "@output" => "event" } }
}Still failing?
One error usually hides the next. Parsleaf writes the full parser from your sample logs and keeps fixing it from the errors your SecOps tenant returns, until it passes. Generate your parser: the first one is free.