---
title: "alpacon audit"
description: "View Alpacon audit log entries from the CLI. Filter user actions and system events by application, model, or user, and limit the results with the tail flag."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon audit

View audit logs for user actions and system events.

## Usage

`alpacon audit [flags]`

## Key facts

- Filter by user, application, or model.
- Use `--tail` to choose how many entries to show.
- `audit-log` is an alias for `audit`.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-a, --app` | `string` | Filter by application | — |
| `-h, --help` | `bool` | help for audit | `false` |
| `-m, --model` | `string` | Filter by model | — |
| `-t, --tail` | `int` | Number of audit log entries to show, newest first | `25` |
| `-u, --user` | `string` | Filter by username | — |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

View recent audit logs:

```bash
alpacon audit
alpacon audit-log
```

Filter audit logs:

```bash
alpacon audit --tail 10 --user admin
alpacon audit --tail=50 --app=cert --model=authority
```

## Description

The audit command displays audit log entries that track security-relevant events across your infrastructure. Audit logs include:

- User authentication events (login, logout, MFA)
- Resource access events (servers, certificates, groups)
- Configuration changes
- Permission modifications
- API access

Without the `activity:read` permission across the workspace, the command lists only your own entries, and filtering by another user is refused. See [Activity log](/use/audit/governance/activity-log/#reading-activity-through-the-api).

## Related topics

- [Audit overview](/use/audit/) - Review sessions, events, and approval decisions in the Alpacon UI
- [Command executions](/reference/cli/exec/#exec-ls) - List recent remote command executions

Source: https://docs.alpacax.com/reference/cli/audit/
