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
logIdstringrequiredUnique identifier for this log entry — never reuse.servicestringrequiredName of the microservice or application that generated the event.timestampstring (ISO 8601)requiredWhen the action occurred, in UTC with millisecond precision.actionstringrequiredDot-namespaced action string: <resource>.<verb> (e.g. user.role_changed).actorobjectrequiredWho performed the action — user, API key, or automated job.actor.ipstringoptionalIP address of the actor — required for security audit trails.targetobjectrequiredThe resource that was acted upon.changesobjectoptionalDiff of changed fields: { field: { from, to } }.metadataobjectoptionalCorrelation 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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.