astro organization audit-logs

This command is only available on Astro.

Astro audit logs record administrative activities and events in your Organization. You can use the audit logs to determine who did what, where, and when. This command allows you to export audit logs in a GZIP format for your entire Organization.

See Export Astro audit logs for more information about exporting audit logs as well as a reference describing the different included fields.

Usage

$astro organization audit-logs <options>

Or

$astro organization al <options>

Options

OptionDescriptionValid Values
exportExport your Organization audit logs in GZIP. Requires Organization Owner permissions.N/A

export flags

FlagDescriptionValid Values
-i, --includeNumber of days in the past to start exporting logs from. Minimum: 1. Maximum: 90. Default is 1.An integer between 1 and 90.
-n, --organization-nameThe name of the Organization to export audit logs for.Any valid Organization name.
-o, --output-filePath to a file for storing exported audit logs.Any valid file path.

Examples

Export audit logs for your Organization:

$astro organization audit-logs export --organization-name="<your-organization-name>"

Export the last 30 days of audit logs to a file:

$astro organization audit-logs export --include 30 --output-file audit-logs.gz