astroctl audit stats
Get audit statistics (Admin/Owner Required)
Synopsis
Get audit statistics and analytics for your organization.
🏢 ENTERPRISE PLAN REQUIRED: This command is only available for organizations with Enterprise plans. 👥 ADMIN OR OWNER ROLE REQUIRED: You must have Admin or Owner role in your organization to view audit statistics.
Terminal
astroctl audit stats [flags]
Examples
Terminal
# Get audit statistics for the last 30 days
astroctl audit stats
# Get audit statistics for the last 7 days
astroctl audit stats --period 7d
# Count dry runs and reads of sensitive data too (by default only real changes are counted)
astroctl audit stats --include-dry-runs --include-reads
Options
Terminal
-h, --help help for stats
--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 Organization ID (Admins only)
-o, --output string Output format (table|wide|json|yaml) (default "table")
--period string Time period for statistics (7d, 30d, 90d) (default "30d")
SEE ALSO
- astroctl audit - View your audit logs and organization activity