The short answer

Choose security logs around the questions an investigator must answer. Connect the actor, affected record, permission decision and outcome; distinguish event time from collection time; and protect the evidence without copying secrets into it. Test whether another operator can reconstruct a controlled change before buying more log storage.

At a glance

  • Start with a sensitive action and the questions its investigation must answer.
  • Connect actor, authority and outcome while preserving event and collection times.
  • Keep secrets out of routine logs and test access, retention and collection ownership.
  • Ask another operator to reconstruct a controlled change and record the gaps.

The change exists. The explanation does not.

A finance colleague opens a supplier record and finds that its payment account has changed. The portal log shows a successful request. The integration log shows an update. Neither says which approved change those entries belong to. Imagine a fictional distributor, not a reported Invade Core incident. The team now has plenty of lines to read and one urgent question it cannot answer: how did this value get here? Before increasing the logging budget, choose one sensitive action and ask whether the current evidence can explain it from request to recorded outcome.

Write the investigation question first

OWASP's Logging Cheat Sheet recommends recording the event's time, location, actor and action, and using an interaction identifier to connect related events. For our supplier example, we would ask for an internal actor reference, affected supplier reference, requested operation, permission decision, approval reference where required, and final result. Give the request and later worker activity a documented connection. Keep a rejected attempt distinguishable from an accepted change. Then ask the service owner to read the record: does it show who requested the action, which authority allowed it and whether it finished? A connection between log entries is useful evidence; it is not, by itself, proof that the human account holder intended the action.[1]

Keep two clocks when the evidence arrives late

The order in which records arrive can confuse that explanation. OpenTelemetry's logs model distinguishes Timestamp, when the event occurred according to the source clock, from ObservedTimestamp, when the collection system observed it. It also defines optional trace and span identifiers for request processing. For our distributor, we would preserve both times where available and investigate a delayed worker separately from a delayed log shipment. Document any missing timestamp or known clock uncertainty. Do not quietly present collection order as the business sequence. A common trace format can help connect services, but the team still needs to decide which business action each recorded event describes.[2]

Leave the secret out of the explanation

Resist the request to log the entire payment form for convenience. OWASP advises against directly recording passwords, access tokens, sensitive personal information and bank-account data in ordinary logs. Our proposed event would say that the payment destination changed and point to a separately protected business record. It would not reproduce either account number or the session credential. Review permitted fields with the information owner before implementation, including free-text errors that might accidentally contain submitted values. Our buying question is simple: can an investigator find the relevant evidence through authorised access without making every routine log reader a reader of the supplier's financial details?[1]

Give the evidence its own protection

The joint event-logging guidance from ASD's ACSC and international partners recommends centralised collection, restricted access and protection against unauthorised modification or deletion. It also calls for an approved policy covering monitoring and retention. Ask the provider to demonstrate those controls for the chosen service. For this example, we would separate permission to write events from permission to read or administer the store, name the owner of collection failures and agree how long the investigation needs remain covered. Record storage limits and deletion arrangements in the handover. More retained data is not automatically better evidence if nobody knows which sources stopped arriving or who can alter the record.[3]

Hand the investigation to someone else

Finish with a rehearsal using synthetic supplier details and approved test identities. Make an allowed change, attempt a denied change, and delay one background step in a safe test environment. Give a colleague the supplier reference and ask them to reconstruct what happened without help from the developer who built it. Check whether they can explain the missing interval and distinguish a request from a completed update. These are proposed acceptance checks, not measured client outcomes. Record the unanswered questions and fund the missing event, connection or operating control first. A complete-looking timeline cannot prove that every source is truthful or every action was captured. It should make the tested facts and remaining gaps clear enough for the next decision.

Sources and further reading

  1. OWASP — Logging Cheat Sheet: event attributes, interaction identifiers and data to exclude ↗
  2. OpenTelemetry — Logs Data Model: Timestamp, ObservedTimestamp and trace context fields ↗
  3. ASD's ACSC and international partners — Best practices for event logging and threat detection, pages 5 and 11 ↗

Put the perspective into practice.

Explore Security & Technology Intelligence