A web access log can show that a request reached an endpoint. It may not show which invoice was approved, which role changed, or whether the requested action succeeded. Those details belong to the application's business context.
An investigation depends on being able to reconstruct meaningful actions across services. The logging design needs to capture that context while avoiding unnecessary copies of credentials or sensitive content.
Define events around decisions
OWASP distinguishes application security logging from infrastructure and web-server logs. Its guidance discusses event attributes, sensitive information exclusions, protection, and verification of the logging system. The OWASP logging guidance provides the technical foundation.
An illustrative finance application can record that a named actor attempted to approve an invoice in a particular tenant, whether authorization succeeded, and which record changed. Logging only a generic update request would require investigators to infer the business action from incomplete context.
Connect events without copying the payload
Use stable request, job, and object identifiers to connect records across the interface, API, queue, and database operation. Preserve the distinction between the human actor and a service acting on that person's behalf. Support access and scheduled jobs make that distinction especially relevant.
Full request bodies can contain passwords, tokens, financial details, or private messages. Determine which fields are needed to explain the event and which should be excluded or transformed. A useful audit record does not require indiscriminate payload retention.
Test delivery and interpretation
Generate a successful synthetic action, an authorization denial, a validation failure, and an interrupted operation. Retrieve the events using the response team's normal tools. Confirm that timestamps, identities, tenant context, and outcomes can be interpreted consistently across components.
Also test what happens when the log destination is unavailable. The application's business and security requirements determine whether an action must stop, queue its evidence, or continue with an alert. Record that behavior explicitly so an outage does not create an unexplained gap.
Protect the evidence and test access
Review who can change logging settings, modify stored events, and retrieve sensitive audit data. Separate ordinary application privileges from evidence-administration privileges where the architecture permits. Record retention and deletion rules so responders know the available historical window.
Use the synthetic event sequence as a reconstruction exercise. Ask whether an investigator can identify who attempted the action, which account was affected, what changed, and which evidence is missing. A large volume of logs is not the same as an answerable sequence.
The assessment can deliver a tested event map and coverage gaps tied to business operations. That gives engineering specific logging changes and gives management a measured account of investigation capability, including the operations and time periods the evidence does not cover.
Sources
OWASP: Logging Vocabulary. The invoice approval and reconstruction exercise are illustrative.