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.action | metadata.event_type |
|---|---|
create | USER_RESOURCE_CREATION |
update | USER_RESOURCE_UPDATE_CONTENT |
destroy | USER_RESOURCE_DELETION |
show | USER_RESOURCE_ACCESS |
apply, cancel, discard, force_execute, force_cancel | USER_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 field | UDM field |
|---|---|
timestamp | metadata.event_timestamp |
id | metadata.product_log_id (deduplication) |
resource.type + resource.action | metadata.product_event_type (e.g. run.create) |
auth.description | principal.user.userid |
auth.accessor_id | principal.user.product_object_id |
auth.organization_id | principal.administrative_domain |
resource.id | target.resource.product_object_id |
resource.type | target.resource.type |
auth.type, auth.impersonator_id, request.id, version, type | additional.fields |
agent pool actor (auth.type System) | principal.resource.product_object_id and principal.resource.name |
Edge cases it handles
- Impersonated actions. When a support user acts as someone else, the impersonated user stays the principal and the impersonator is kept in
additional.fields["impersonator_id"], so a rule can flag every impersonated change. - System actors. Agent pools are not users. A naive mapping fails validation with
RESOURCE_DELETION missing user id in principal. This parser describes the pool inprincipal.resourceand still satisfies the principal requirement, soRESOURCE_*events validate. - Null fields.
impersonator_idandresource.metaare usuallynull; the parser skips them instead of writing empty values.
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.