audit¶
Export or clean up audit logs.
Syntax¶
Arguments¶
audit does not accept positional arguments; use subcommands.
Options¶
| Short | Long | Default | Description |
|---|---|---|---|
| - | --help |
- | Show help and exit |
Subcommands¶
audit export¶
Export audit logs to a JSON Lines file.
| Short | Long | Default | Description |
|---|---|---|---|
-s |
--since TEXT |
- | Export records after this time (ISO date or 1d/7d/30d) |
-o |
--output PATH |
- | Output file path |
audit cleanup¶
Remove audit log files older than the retention period.
| Short | Long | Default | Description |
|---|---|---|---|
| - | --retention-days INTEGER |
- | Retention period in days |
| - | --dry-run |
False |
Preview actions |
Examples¶
Export the last 30 days:
Export to a specific file:
Clean up logs older than 90 days:
Preview cleanup:
Output Notes / Common Errors¶
--sinceaccepts ISO dates or relative durations such as1d,7d,30d.- Audit logs are stored in
.autoship/audit/under the project root by default.