Parsleaf

Google SecOps parser errors

merge source field "event" must not be empty

You merged event into @output when nothing under event was set. Common in parser extensions whose condition did not match this log.

The error

pipeline failed: filter mutate (8) failed: merge failure: merge source field \"event\" must not be empty

Why it happens

The final merge into @output points at a field with nothing in it.

In parser extensions this happens when the extension only maps fields for some logs: on the others, nothing is set under event, but the merge still runs.

It also happens when fields were set under a different prefix (event1) than the one merged.

How to fix it

Works:

mutate { replace => { "mapped" => "false" } }

if [rule_name] != "" {
  mutate {
    replace => {
      "event.idm.read_only_udm.security_result.rule_name" => "%{rule_name}"
      "mapped" => "true"
    }
  }
}

if [mapped] == "true" {
  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.

Other parser errors