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.
| Evidence source | Useful for | Do not infer |
|---|---|---|
| Audit activity ledger | Recorded run/tool lifecycle and optional message outcomes | Complete capture or the contents of an action |
| Execution identity and decision inspection | Retained attribution and exactly linked decision receipts | That attribution alone authorized an action |
| Runtime logs and session transcripts | Troubleshooting and conversation/tool context | Uniform redaction or immutable retention |
| OpenTelemetry export | Collected diagnostics, traces, metrics, and logs | An automatic copy of every audit-ledger row |
| Target-system records | Independent evidence of a committed business change | That 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.
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
- OpenClaw: audit history
Checked October 27, 2026 - OpenClaw: audit CLI and execution inspection
Checked October 27, 2026 - OpenClaw: audit, logging, diagnostics, and telemetry configuration
Checked October 27, 2026 - OpenClaw: set up OpenTelemetry export
Checked October 27, 2026 - OpenClaw: telemetry privacy and trace context
Checked October 27, 2026
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.