Parsleaf

Log types with no default parser

HCP Terraform audit trail parser for Google SecOps

Google SecOps added the HASHICORP_TERRAFORM log type in May 2026 without a default parser. You can ingest HCP Terraform audit trail events, but they stay raw: nothing reaches UDM, UDM Search finds nothing, and detection rules never fire on them.

This is the mapping of a parser Parsleaf generated from sample audit trail events and validated in a Google SecOps tenant, including the edge cases that usually break a first attempt.

Event types

resource.actionmetadata.event_type
createUSER_RESOURCE_CREATION
updateUSER_RESOURCE_UPDATE_CONTENT
destroyUSER_RESOURCE_DELETION
showUSER_RESOURCE_ACCESS
apply, cancel, discard, force_execute, force_cancelUSER_UNCATEGORIZED
any action by a System actor (agent pool)RESOURCE_CREATION / RESOURCE_DELETION / RESOURCE_WRITTEN / RESOURCE_READ

Anything the parser cannot classify falls back to GENERIC_EVENT instead of failing.

Field mapping

Audit trail fieldUDM field
timestampmetadata.event_timestamp
idmetadata.product_log_id (deduplication)
resource.type + resource.actionmetadata.product_event_type (e.g. run.create)
auth.descriptionprincipal.user.userid
auth.accessor_idprincipal.user.product_object_id
auth.organization_idprincipal.administrative_domain
resource.idtarget.resource.product_object_id
resource.typetarget.resource.type
auth.type, auth.impersonator_id, request.id, version, typeadditional.fields
agent pool actor (auth.type System)principal.resource.product_object_id and principal.resource.name

Edge cases it handles

Testing it

The SecOps parser editor treats everything in one paste as a single log. Test one audit event per line, or the JSON step fails and you only see the GENERIC_EVENT fallback.

Get this parser

Paste 20 or more of your own audit trail events into Parsleaf with Google SecOps selected. You get a parser built on your exact events and fields, plus fix rounds if your tenant returns an error. Your first parser is free.