Business
Audit Log Entry JSON Example
A structured JSON example for an audit log event — capturing who did what to which resource, when, and from where. Essential for compliance, security monitoring, and debugging production incidents.
Field Reference
logIdrequiredstringUnique identifier for this log entry — never reuse.servicerequiredstringName of the microservice or application that generated the event.timestamprequiredstring (ISO 8601)When the action occurred, in UTC with millisecond precision.actionrequiredstringDot-namespaced action string: <resource>.<verb> (e.g. user.role_changed).actorrequiredobjectWho performed the action — user, API key, or automated job.actor.ipoptionalstringIP address of the actor — required for security audit trails.targetrequiredobjectThe resource that was acted upon.changesoptionalobjectDiff of changed fields: { field: { from, to } }.metadataoptionalobjectCorrelation IDs for distributed tracing: requestId, traceId, sessionId.Variants
Data export eventGDPR-relevant audit event for user data export requests
Common Use Cases
- →Compliance audit trails for SOC 2, ISO 27001, HIPAA, and GDPR requirements
- →Security incident investigation — who accessed what, when, and from where
- →Debugging production issues by replaying the sequence of events that led to a bug
- →Event sourcing systems where the audit log is the source of truth
- →Alerting on suspicious actions like mass data exports or permission escalations
audit logcompliancesecurityevent sourcingGDPRlogging
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
API DesignWebhook EventWebhook event envelope with type, resource object, and retry metadata.BusinessEmployee RecordHR employee record with department, compensation, manager, and employment details.E-commercePayment TransactionPayment transaction with amount, method, gateway reference, and refund history.