Technical document

Design audit logs for admin screens not as an afterthought

When handling critical operations on the admin screen, we organize the granularity, storage method, and confirmation screen for audit logs that record who changed what and when.
Operations Design / Audit Logs~10 minPublication Date September 22, 2026Update date September 22, 2026
Design audit logs for admin screens not as an afterthought

Summary

Key points of this document

  • Where are the design challenges?
  • How to define boundaries
  • Details that matter in implementation

Overview

The more convenient an admin screen is, the heavier the accountability becomes when misoperations or permission issues occur. Audit logs should not be added after a failure; they should be considered alongside the design of critical operations. Audit logs are not something to hastily add after a failure; they are a data model that should be decided simultaneously with the operational design of the admin screen.

Where are the design challenges?

If data or permissions can be changed on the admin screen, it's impossible to investigate who performed an operation after a problem occurs if you don't know. Application logs alone can sometimes make it difficult to trace the business meaning.

Saving all input values as-is will duplicate personal and confidential information in the logs. On the other hand, logs that don't show what changed are useless. Granularity design is necessary.

On the admin screen, there are many operations for which you might want to check the reason later, such as configuration changes, permission grants, deletions, imports, and approvals. A success notification on the screen alone won't allow you to trace who changed what when a problem occurs.

How to define boundaries

Audit logs should contain operation type, target ID, executor, timestamp, summary of changes before and after, request ID, and result. Detailed values should be limited to necessary items, and highly sensitive values should be masked or not stored.

In design, audit logs are treated not as a side effect string storage, but as a completion event of a use case. By including actor, target, action, before, after, reason, and request_id, they can be used for both investigation and display.

Details that matter in implementation

Log critical operations immediately before and after in the API service layer. Choose whether to save business updates and audit logs together within a DB transaction, or to keep separate logs for failures, depending on the nature of the operation. Display target-specific history on the screen.

In Laravel and the API layer, audit_events are saved within the same transaction as the update process. On the React side, provide reason input and confirmation dialogs for critical operations, and pass the operation context to the logs.

  • Do not store personal information or secret values directly in audit logs; instead, decide on masking or the granularity of differences.
  • Failed permission violations and invalid inputs should also be recorded as security events to the necessary extent.
  • Unify request_id across regular logs and audit logs to enable tracing during investigations.

Observe how it breaks

During verification, check logs for permission changes, deletions, approvals, data modifications, and failed operations. Also ensure that logs are not visible to users without log viewing permissions, and that logs do not contain unnecessary personal information.

During verification, confirm that audit logs are recorded for each critical operation, that operations are rejected when roles are insufficient, and that log viewing permissions are controlled. In particular, test how differences are recorded for bulk operations like bulk update and CSV import.

Discarded options and trade-offs

Making logs too granular increases storage volume and verification costs. It's easier to start by focusing on critical operations and then expand the scope later. However, permission changes and deletions should be recorded from the beginning.

The more detailed the logs, the easier it is to investigate, but storage volume and information management burden increase. Instead of saving all changes with the same granularity, the design should be more detailed for higher-risk operations.

Decision criteria for the field

Audit logs are not for developers; they are records that support business explanations. By deciding log granularity during the design of critical operations, investigations when problems occur become realistic.

Audit logs are not just for assigning blame later. By enabling explanations of the reasons and impacts of changes, the reliability of the admin screen increases.

Technical documents

We will continue to increase technical documentation.

We will continue to organize our thoughts on AI, cloud, business app development, requirements definition, and operational design into documents.

Go to technical documentation list