astroctl_audit_export
astroctl audit export
Export audit events
Synopsis
Export audit events to file or stdout in JSON or CSV format.
🏢 ENTERPRISE PLAN REQUIRED: This command is only available for organizations with Enterprise plans. 👥 PERMISSIONS: Users can export events they have access to.
astroctl audit export [flags]
Examples
# Export your audit events as JSON
astroctl audit export
# Export audit events as CSV
astroctl audit export --format csv
# Export to file
astroctl audit export --format json --output my-activity.json
Options
--action string Filter by action (CREATE, DELETE, UPDATE, REVOKE)
--end-date string End date (e.g., 2024-01-15)
--event-type string Filter by event type (API_KEY, CLUSTER, APPLICATION, etc.)
--format string Export format (json, csv) (default "json")
-h, --help help for export
--org-id string Organization ID (Admins only)
--output string Output file path (default: stdout)
--start-date string Start date (e.g., 2024-01-15)
--user-id string Filter by user ID (Admins only)
SEE ALSO
- astroctl audit - View your audit logs and organization activity