Skip to main content

The 6 CBN parser errors I hit most, and the one-line cause of each

  • Nov 25, 2026 1:14 PM UTC
  • 0 replies
  • 5 views

toodiewithahoodie

After writing a lot of custom parsers and parser extensions, most validation failures I see come down to a handful of mistakes:

  1. received non-slice or non-array raw output for repeated field: the field is a list (principal.ip, target.ip, security_result, additional.fields). Use merge with the temp field's name ("src_ip"), not replace, and not "%{src_ip}".

  2. non-signed-integral type given for backstory.Noun.port: ports are integers. Strip non-digits, convert to integer, then rename into the UDM field. replace only writes strings.

  3. UDM.metadata not present: no event_type reached @output. Usually an event.id. typo, setting event1 but merging event, or a branch that didn't run. Set GENERIC_EVENT as a default at the top.

  4. principal field is not set: the event_type you picked requires a principal or target machine you didn't fill. Choose the type after mapping, with a fallback.

  5. "x" not found in state data: you tested a field that doesn't exist for this line. Initialise every temp field with "" at the top.

  6. merge source field "event" must not be empty: common in extensions. Only merge into @output when you actually mapped something.

I wrote up 12 of these with failing and working snippets here: parsleaf.com/errors. Happy to look at anyone's parser if you're stuck.