Export audit logs
Audit logs are retained for 90 days. The Organization Owner role is required to export audit logs.- New Astro UI
- Legacy UI
- In the Astro UI, go to Settings, then in the Security section, click Export… next to Audit Logs.
- Select the number of days of audit data to export, then click Export Logs.
<astro-organization-name>-logs-<number-of-days>-days-<date>.ndjson.
CLIYou can also export logs using the Astro CLI. Run the following command to export audit logs as a GZIP file to your current directory:
Audit logs reference
This section is a reference for all available fields in Astro audit logs. The following categories of event data are available in an audit log:- API events: The data generated by user actions in the Astro UI, Astro CLI, or from internal processing actions in the Astro control plane.
- Airflow UI access: The data generated when users access the Airflow UI.
- Astronomer container registry access: The data generated when users access the Astronomer container registry with the Astro CLI.
Common fields
The following table lists the common fields shared by all categories of event data.Table: Common fields in audit logs
To link the user ID back to a user, Organization Owners can use the Astro Access Management UI by clicking Access Management in their Organization Settings.
API event fields
Audit log events can be generated from the v1 API or the v2 API. Each API generates different fields for the same actions, and your audit log might include events from both APIs. Audit log event frequency for the v1 API are expected to decline as Astronomer transitions to the v2 API.Table: v1 API event fields
The following table maps some common
operationName attributes to their corresponding requestInput attributes.
Table: operationName attribute mappings
Table: v2 API event fields
The following table maps some common
path attributes to their corresponding requestBody attributes.
Table: path attribute mappings
Use your analytics or audit tool to view additional attribute mapping information.
Airflow UI access event fields
The following table lists the fields that are unique to Airflow UI access events.Table: Airflow UI access event fields
The following table lists the fields that are unique to Astronomer container registry access events.