Skip to main content

astroctl_audit_list

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.

astroctl audit list [flags]

Examples


# List recent audit events
astroctl audit list

# 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

# 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

--action string Filter by action (CREATE, DELETE, UPDATE, REVOKE)
--end-date string End date (e.g., 2024-01-16)
--event-type string Filter by event type (API_KEY, CLUSTER, APPLICATION, etc.)
-h, --help help for list
--org-id string Filter by organization ID (Admins only)
--page int Page number (default 1)
--page-size int Items per page (max 100) (default 50)
--start-date string Start date (e.g., 2024-01-15)
--user-id string Filter by user ID (Admins can filter by any user)

Options inherited from parent commands

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO