raw output is not []interface{}, instead is: string
@output must be a list of events. Merge the event object into @output; do not replace it, and do not use %{event}.
The error
failed to convert raw output to events: raw output is not []interface{}, instead is: stringWhy it happens
SecOps reads @output as a list of UDM events. It found a string, which happens when @output is set with replace, or merged with "%{event}" instead of "event".
How to fix it
- End the parser with exactly one merge of your event object's name into @output.
Fails:
mutate { replace => { "@output" => "%{event}" } }Works:
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.