The OpenClaw field guide

OpenClaw audit logs: a business evidence and export checklist

Evaluate OpenClaw audit logs, execution identity, retention, and telemetry export with an evidence checklist that separates recorded activity from authorization and business results.

By Santuri5 min read

Useful audit evidence should help a business explain who initiated work, which authority applied, what the agent attempted, and what actually changed. OpenClaw documents a metadata-only audit ledger, execution inspection, runtime logs, and telemetry export. These serve different purposes; none should be accepted as a complete compliance archive without deployment-specific validation.

1. Map the evidence before choosing an exporter

Start with one workflow and a coverage worksheet. For every required fact, name its source, correlation identifier, reader, retention owner, and known gap. Current official documentation distinguishes the following surfaces. Check your installed version rather than assuming every documented capability is already deployed.

1. Map the evidence before choosing an exporter: comparison
Evidence sourceUseful forDo not infer
Audit activity ledgerRecorded run/tool lifecycle and optional message outcomesComplete capture or the contents of an action
Execution identity and decision inspectionRetained attribution and exactly linked decision receiptsThat attribution alone authorized an action
Runtime logs and session transcriptsTroubleshooting and conversation/tool contextUniform redaction or immutable retention
OpenTelemetry exportCollected diagnostics, traces, metrics, and logsAn automatic copy of every audit-ledger row
Target-system recordsIndependent evidence of a committed business changeThat a successful model turn proves the change

2. Enable the evidence you need before the event

The documented logging.audit.enabled default is true. The ledger records run and tool metadata in the shared state database, not prompts, message bodies, tool arguments, results, or raw error text. Queries exclude records older than 30 days, and the activity ledger is capped at 100,000 rows. Neither limit is a promise of 30 days of complete history.

Message auditing is off by default. logging.audit.messages can select direct conversations or all conversation kinds; direct mode excludes destinations not proven direct. Execution identity is another privacy-sensitive opt-in through logging.audit.executionIdentity. It requires auditing to be enabled and applies to newly admitted runs.

These audit settings apply live, but enabling them does not backfill earlier activity or add identity to already admitted runs. Assign the gateway owner to document the deployed version, effective settings, and collection start time before accepting the workflow.

3. Separate attribution, authorization, and success

Use openclaw audit to query activity. For retained identity and decision evidence, use its --run selector with --explain, then select an exact --execution if the run correlation is ambiguous. A run identifier can refer to multiple executions; choosing the latest silently would weaken the investigation.

Read the reported evidence states. Attribution-only is not proof that identity affected an authorization decision. A device, shared credential, or display name is not independently verified personal identity. Exactly linked terminal operator-approval records can provide authoritative decision evidence; a later successful tool event cannot manufacture a missing approval.

Unknown or unsupported evidence remains a gap. The audit writer is best-effort: queue saturation, storage failures, or crashes can lose records without stopping the agent. Some plugin-local and direct-send message paths bypass the documented shared delivery boundary. Absence of a row does not prove absence of an action.

4. Design export as two separate collection paths

If your review needs audit activity outside the gateway, design a collector around the documented audit query surface. CLI JSON pages expose nextCursor; follow pagination and test recovery after interruption. Record event identifiers, collection times, and gaps. A single page is not a complete export, and expired or never-recorded evidence cannot be recovered by polling more often.

For operational telemetry, the official diagnostics-otel plugin supports OTLP/HTTP protobuf. Verify the plugin, diagnostics, exporter, signal selection, sampling, and destination together. Check the running gateway's exporter-health view and confirm receipt in the collector; an enabled configuration alone is insufficient. Do not assume this diagnostics pipeline mirrors the audit ledger.

Runtime choice also matters. The setup guide says openclaw agent exec does not start this exporter. External harness tool calls can emit tool-execution spans without content payloads. Document unsupported paths and test the actual client and runtime used by the business.

5. Give privacy and retention explicit owners

Keep diagnostics.otel.captureContent off unless the destination and retention policy are approved for model and tool content. Opting in enables bounded, redacted content; it does not guarantee capture of every payload or remove every private value. System prompts and provider-internal thinking remain excluded under the documented policy.

Local file logs store raw records; direct reads bypass log-egress redaction. Tool arguments, results, and transcript text are not secret-masked by logging configuration. Inspect synthetic sensitive markers across local files, exported logs, and traces separately before handling business data.

Audit metadata is sensitive too. Stable pseudonyms support correlation, not anonymization, and run/tool session keys can contain account or peer identifiers. Execution inspection is available to operator.read clients within the gateway's trusted operator domain; it is not hostile-tenant isolation. Assign access review, export retention, deletion, and any tamper-resistance requirement to named owners. An external collector needs its own controls and coverage validation.

6. Reconstruct one disposable business workflow

Consider an illustrative test that updates a dummy CRM record after a required review. This is a proposed drill, not a customer case study or a claim that every connector provides the same evidence. Give the test a harmless business identifier and retain its expected outcomes outside the conversation.

  • Allowed update: correlate the requester evidence, exact execution, approval decision, tool outcome, and CRM read-back or transaction receipt. Mark each missing link explicitly.
  • Denied update: verify the relevant denial record where supported and independently confirm that the dummy record stayed unchanged.
  • Ambiguous timeout: inspect the CRM before retrying. A failed or unknown local result does not establish that the remote write failed.
  • Collector outage: interrupt only the disposable export path, restore it, and measure which records arrive, duplicate, or remain missing. Verify that someone notices the gap.
  • Privacy check: search for synthetic sensitive markers and confirm that intended reviewers can access evidence while unintended readers cannot.

7. Accept demonstrated coverage, not a logging label

Keep the worksheet, sanitized settings, sample records, gaps, and drill results together. Approve the workflow only when its owner can explain the evidence needed for the business decision. Recheck after gateway, runtime, plugin, or collector changes. For immutable archives, legal retention, or regulated reporting, validate those requirements separately; ordinary audit history and telemetry are not certifications.

Sources and further reading

Research-assisted writing by Santuri. Technical statements are grounded in the sources above, checked on the dates shown. Deployment requirements depend on your environment and installed version. Workflow examples are illustrations, not customer case studies.

Planning a deployment? Start with our enterprise OpenClaw guide and business workflow examples, or review our deployment approach.

Start deliberately. Expand with evidence.

Bring us one workflow.

We’ll work through the value, access requirements, and operating model with you. Then scope an OpenClaw pilot your team can evaluate.

Plan your OpenClaw pilot

30-minute discovery call · scoped implementation + ongoing management