Skip to content
AnchrasDocumentation
Browse documentation

Security and governance / User guide

Audit logs

Review and export organization audit events for infrastructure and access changes.

On this page

Before you begin

Have audit-read permission in the organization whose activity you are reviewing. Know the approximate time, actor, or resource involved.

Get started

  1. Open the audit log view.
  2. Filter by the relevant time range, actor, action, or resource.
  3. Inspect event details and associated resource identifiers.
  4. Export the supported result set when you need a review artifact.

Operate the service

Correlate audit events with operational logs and provider results. Use narrow filters and check pagination when producing an export. Preserve exported evidence according to your organization requirements.

Availability and limits

Audit events describe recorded actions; they do not replace workload logs or prove that every external provider action succeeded. Available history follows the platform retention and access policy.

Troubleshooting

For missing events, check organization, timezone, range, filters, and pagination. A permission failure should be resolved through the appropriate audit role rather than changing the query.

Next steps

Use the CLI guide to automate repeatable work, or the API guide to integrate Anchras with your own tools.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
audit retention get / audit retention set --days NThe organization's audit retention policy (default 730 days, at least 365). Owner/admin, or API keys with audit.read / audit.manage. The policy is held by the global region, so set it at the global endpoint; it replicates to every region, which prunes its own part of the audit log by it. The table lists each region's last retention run: enforced (it pruned by the policies it read, current up to POLICIES_AS_OF; CURRENT says whether that already includes the latest change) or paused (it pruned nothing, and REASON says why: a region whose replica is incomplete or older than its staleness bound never prunes, so it never deletes what a newer policy keeps).
audit listList org audit events (newest first). Owner/admin or API keys with audit.list. Flags: --page, --page-size, --action, --resource-arn-prefix, --actor-id (action is exact-match; ARN filter is prefix-match), --category, --region, --page-token. --category tailnet lists only tailnet configuration changes: tailnets and their devices and nodes, policy, DNS, routes, users, auth keys, Tailnet Lock, node shares, trust credentials, logins and provider switches. Audit stays in the region of the resource it records: the global endpoint asks every serving region with your credentials and merges their events newest first, and each row shows the region that holds it. --region <id> lists only that region's events. A region that does not answer is named on stderr (note: partial list: ...) and its events are missing from the page. --page-token continues from the token the previous page printed (note: more events follow), which keeps each region's position; deep pages of a log merged across regions need it, since page numbers reach the first 5000 events.

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.