A logging collector goes offline while an application is still accepting work. When it returns, the dashboard looks healthy again. Was the missing history delayed, lost or never created?

Before accepting a business application, ask the supplier to demonstrate what happens during a logging outage and how the affected operations are reconciled afterward. A green dashboard is not enough. You need a before-and-after record, an explicit capacity boundary and evidence for each synthetic operation in the outage interval.

This guide assumes you have already agreed which events to record, safe fields, access and retention. Its narrower question is how to accept the failure-and-recovery path, not how to design the whole audit log.

OWASP recommends testing lost connectivity, storage exhaustion, missing write permissions and runtime errors in logging. It also calls for processes to detect stopped logging.[1] The drill below turns that guidance into a proposed acceptance exercise. It is not a tested implementation, a compliance requirement or a guarantee against data loss.

Distinguish collector downtime from failed event capture

Ask the developer to draw the actual evidence path: business operation, initial event capture, any intermediate storage, collector and investigator's view. Mark where an event first survives the failures the project is meant to tolerate. Do not accept “it is queued” without asking whether that queue survives a process restart and how that was demonstrated.

Agree what accepted, committed, captured and searchable mean in this application. These are proposed terms for the drill, not a universal product contract. An event can be captured but not yet visible to an investigator. A successful collector response is not, by itself, evidence that the business change happened.

OWASP says logging failures should not prevent the application from otherwise running or allow information leakage.[1] Keep that general availability guidance separate from a business requirement to preserve evidence before a consequential action completes. If a workflow requires durable evidence, have its owner and developer agree whether that particular operation must be held when capture is unavailable. Avoid an accidental whole-application shutdown without silently weakening the required evidence guarantee.

A collector disconnect and failure of the initial capture store are separate faults. Passing one does not establish the other.

Agree the outage contract and buffer limits

Before introducing a fault, agree four answers:

  • What work may continue, and what result will the user see?
  • Where will evidence wait, and what failures can that storage tolerate?
  • What ends degraded operation: capacity, elapsed time or another explicit condition?
  • Who receives the signal, and what evidence establishes that recovery is complete?

Ask for a bounded buffer policy, not “retry forever.” Document capacity, expiry, overflow behavior and the work affected at the boundary. Values must come from the actual design and workload; this guide supplies no supposedly safe queue size or outage duration. OWASP specifically warns that logging must not exhaust system resources.[1]

Include retries in the contract. Ask how replayed event deliveries are identified without repeating the business operation, and how duplicates are represented or reconciled. These are proposed design checks, not features a named framework is assumed to provide.

Run an isolated collector-disconnect drill

Use a nonproduction environment with synthetic records, agreed fault controls and a restoration plan. A developer should choose and execute the fault mechanism. This guide supplies no production disruption command.

  1. Record the baseline. Save the application revision, environment, relevant component versions and configuration, clock conventions, tester and evidence locations. Show that a normal synthetic operation reaches both business storage and the investigator's view.
  2. Disconnect only the agreed collector path. Use an explicitly enumerated set of synthetic operations: DRILL-A before the outage, DRILL-B during it and DRILL-C after restoration. Record each request's response and resulting business state independently of the event dashboard. Note the outage start and how the monitoring signal was observed.
  3. Inspect the waiting location and capacity signal while disconnected. Do not fill a shared disk to find the boundary. The developer should use an isolated, controlled limit appropriate to the environment. If reaching the limit is unsafe, mark that check unperformed rather than passing it by inference.
  4. Restore connectivity and trace the same operation references through delivery and investigation. Record recovery behavior before declaring the incident closed. A green health indicator alone does not reconcile the outage interval.

Keep the fault scope explicit throughout. A capture-process restart, for example, needs its own agreed scenario; it is not automatically covered by disconnecting the collector.

Reconcile individual operations, not just event counts

This original worksheet is hypothetical and unexecuted. Agree the expected results before testing; fill the observed column from real evidence afterward.

Logging-outage operation ledger — hypothetical and unexecuted
Operation or checkpointExpected result to agreeObserved result and evidence reference
Baseline DRILL-A, before disconnectBusiness outcome and its searchable evidence agreeNot run
DRILL-B, collector disconnectedAgreed business outcome; evidence at the documented capture point; delay visibleNot run
Controlled buffer boundaryDocumented overflow or hold behavior; no silent claim of complete captureNot run
Capture-process restart, if in scopeEvidence survives or the declared loss boundary is exposedNot run; separate fault from collector disconnect
Restored collector and DRILL-B replayEvidence traces to the same operation; duplicate handling matches the contractNot run
DRILL-C, after restorationNew normal operation works without hiding older gapsNot run
Outage closeoutEvery attempted operation is classified and unresolved gaps remain explicitNot run

Classify the business outcome separately from the evidence outcome. A useful proposed evidence vocabulary is captured and searchable, captured but delayed, confirmed missing, or unresolved. If an operation was held or denied, record that business result rather than calling it completed.

Matching counts is insufficient: a duplicate can mask a missing operation. Compare individual references and their outcomes. Keep occurrence time distinct from later ingestion time so replay does not look like a new business action. Where time confidence is limited, record the limitation. OWASP discusses measuring offsets or recording timestamp confidence when synchronization is not possible.[1]

Never invent replacement historical events to balance the totals. Identify a reconstruction from another record as a reconstruction, with its evidence and uncertainty, not as the original captured event.

Record alerts, recovery and unresolved gaps separately

The acceptance record should identify the affected interval, reconciled operations, remaining unknowns and the owner of each unresolved item. If the evidence cannot distinguish a lost event from an operation that never completed, retain that uncertainty.

Ask the supplier to demonstrate the operational signal separately from recovery. OWASP recommends detecting stopped logging and integrating monitoring outputs with incident response.[1] Those recommendations do not prove that an alert reached a person, someone responded or the backlog recovered. Record each observed step separately.

An honest result might be “collector recovery demonstrated; restart persistence and capacity boundary not tested.” That is more useful for a buying decision than an unsupported “logging is resilient.” Have the developer review and execute the relevant scenarios with recorded versions and conditions before treating any row as acceptance evidence.

Put the logging-outage drill in your project brief

Try this requirement:

Demonstrate an isolated collector outage and recovery. Record actual business outcomes, the first durable evidence point, the capacity boundary, the observed alert and operation-by-operation gap reconciliation. Identify anything not tested.

Keep synthetic data and evidence handling within the application's existing access and privacy rules. An outage drill is not permission to export real customer records or weaken log protections.

For a planned application, describe the workflow and failure question in a CodeDrawn Digital project brief. Leave out secrets and customer records. The website helper lets a visitor request an email draft; it does not submit an inquiry or confirm app opening, sending or receipt.[2] Scope and operational commitments require a separate discussion.

Sources

[1] https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html

[2] https://codedrawn.tech