astroctl audit list
List audit events (Enterprise Plan Required)
Synopsis
List audit events for your organization with filtering and pagination options.
🏢 ENTERPRISE PLAN REQUIRED: This command is only available for organizations with Enterprise plans. 👥 PERMISSIONS:
- Admins/Owners see all organization events.
- Regular members see ONLY their own events.
This command displays audit events including API key operations, cluster operations, application deployments, and other resource changes.
Terminal
astroctl audit list [flags]
Examples
Terminal
# List audit events with pagination
astroctl audit list --page 2 --page-size 25
# Filter by event type
astroctl audit list --event-type Cluster
# Filter by action
astroctl audit list --action Create
# Real changes only (the default): dry runs and reads are left out
astroctl audit list
# Only dry runs: changes that were checked and not made
astroctl audit list --dry-run
# Everything recorded, dry runs and reads of sensitive data included
astroctl audit list --include-dry-runs --include-reads
# Search action, resource, actor, channel and IP address
astroctl audit list --search jane@example.com
# Events on one resource
astroctl audit list --resource-id prod-east
# Everything since a moment (the range runs to now)
astroctl audit list --start-date 2024-01-15T10:30:00Z
# Filter by user (Admin/Owner only for other users)
astroctl audit list --user-id 660d8b8d09e3ce662ee63de6
# Filter by date range
astroctl audit list --start-date 2024-01-15 --end-date 2024-01-16
Options
Terminal
--action string Filter by action (Create, Delete, Update, Revoke, etc.)
--dry-run Only dry runs: requests that checked a change and changed nothing
--end-date string End: a date (2024-01-16, through its end) or an instant; alone, reaches back 30 days
--event-type string Filter by event type (APIKey, Cluster, Application, etc.)
-h, --help help for list
--include-dry-runs Also include dry runs; by default only real changes are shown
--include-reads Also include recorded reads of sensitive data, such as the audit log itself
--org-id string Filter by organization ID (Admins only)
-o, --output string Output format (table|wide|json|yaml) (default "table")
--page int Page number (default 1)
--page-size int Items per page (max 100) (default 50)
--resource-id string Only events on this resource ID (exact match)
--search string Case-insensitive search over action, resource, resource ID, actor name and email, channel and IP address
--start-date string Start: a date (2024-01-15) or an instant (2024-01-15T10:30:00Z); alone, runs to now
--user-id string Filter by user ID (Admins can filter by any user)
SEE ALSO
- astroctl audit - View your audit logs and organization activity