> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Viewing events in Audit Logs

An *audit event* is a data record that captures something that happened in Nebius AI Cloud, along with metadata that provides additional context. The metadata shows how events relate to resources or to each other. Each event in Audit Logs has a JSON representation that conforms to the [CloudEvents specification](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md).

You can use the Nebius AI Cloud web console, CLI, or an SDK to view and filter audit events for your [tenant](https://docs.nebius.com/iam/overview.md#tenants).

## Prerequisites

> [tab] Web console
>
> * Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the `admin` or `auditlogs.audit-event-viewer` role within your tenant. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
> * Identify the regions to search for the audit events you need.

> [tab] CLI
>
> 1. [Install and configure](https://docs.nebius.com/cli/install.md) the Nebius AI Cloud CLI.
> 2. Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the `admin` or `auditlogs.audit-event-viewer` role within your tenant. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
> 3. Identify the regions to search for the audit events you need.

> [tab] Go SDK
>
> 1. [Install and initialize the Nebius SDK for Go](https://docs.nebius.com/sdk/go/install-auth.md).
> 2. Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the `admin` or `auditlogs.audit-event-viewer` role within your tenant. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
> 3. Identify the regions to search for the audit events you need.

> [tab] Python SDK
>
> 1. [Install and initialize the Nebius SDK for Python](https://docs.nebius.com/sdk/python/install-auth.md).
> 2. Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the `admin` or `auditlogs.audit-event-viewer` role within your tenant. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
> 3. Identify the regions to search for the audit events you need.

> [tab] JavaScript SDK
>
> 1. [Install and initialize the Nebius SDK for JavaScript](https://docs.nebius.com/sdk/javascript/install-auth.md).
> 2. Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has the `admin` or `auditlogs.audit-event-viewer` role within your tenant. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
> 3. Identify the regions to search for the audit events you need.

## How to view events

> [tab] Web console
>
> In the sidebar, go to  **Administration** → **Audit Logs**. To work with the events on this page, you can do the following:
>
> * On the **Logs** tab:
>   * Select the event type: **Control plane** or **Data plane**. Control plane events track management operations on resources (such as creating or deleting virtual machines). Data plane events track data access operations (such as reading or writing objects in Object Storage).
>   * Select the region.
>   * View event JSONs. To do this, click  in an event's row.
>   * Filter events by period or [by using filters](https://docs.nebius.com/audit-logs/events/filter.md#how-to-filter-events-in-the-web-console). Click  **Filters** and select the filters you need.
> * On the **Metrics** tab:
>   * Select the event type: **Control plane** or **Data plane**.
>   * Select the region.
>   * View the number of events processed per second in a specific region and time period.
>   * Only for data plane events, view information related to quota usage. For more information, see [Quotas in Audit Logs](https://docs.nebius.com/audit-logs/resources/quotas-limits.md).

> [tab] CLI
>
> 1. Get all events in the tenant:
>
>    ```bash theme={null}
>    nebius audit v2 audit-event list \
>       --parent-id <tenant_ID> \
>       --start <time_in_ISO_8601> \
>       --end <time_in_ISO_8601> \
>       --region <region_ID>
>    ```
>
>    In the command above, specify:
>
>    * `--parent-id`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-cli).
>    * `--start`: Start time for the search, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
>    * `--end`: End time for the search, in the ISO 8601 format.
>    * `--region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
>    For example, to get all the events that happened in March 2025, run the following command:
>
>    ```bash theme={null}
>    nebius audit v2 audit-event list --parent-id <tenant_ID> \
>      --start 2025-03-01T00:00:00Z \
>      --end 2025-04-01T00:00:00Z \
>      --region <region_ID>
>    ```
>
> 2. (Optional) By default, only control plane events are shown.
>
>    * **Control plane events** (default): Track management operations on resources, such as creating, updating, or deleting virtual machines, clusters, or other infrastructure resources.
>
>    * **Data plane events**: Track data access operations, such as reading or writing objects in Object Storage buckets.
>
>    To view data plane events, specify `data_plane` in the `--event-type` parameter:
>
>    ```bash theme={null}
>    nebius audit v2 audit-event list \
>       --parent-id <tenant_ID> \
>       --start <time_in_ISO_8601> \
>       --end <time_in_ISO_8601> \
>       --event-type data_plane \
>       --region <region_ID>
>    ```
>
> 3. (Optional) To narrow down events, use [filters](https://docs.nebius.com/audit-logs/events/filter.md#how-to-filter-events-by-using-the-cli-or-an-sdk-cli).

> [tab] Go SDK
>
> 1. Get all events in the tenant:
>
>    ```go theme={null}
>    periodStart, err := time.Parse(
>        time.RFC3339, "<time_in_ISO_8601>",
>    )
>    if err != nil {
>        return fmt.Errorf("parse start time: %w", err)
>    }
>    periodEnd, err := time.Parse(
>        time.RFC3339, "<time_in_ISO_8601>",
>    )
>    if err != nil {
>        return fmt.Errorf("parse end time: %w", err)
>    }
>    periodService := sdk.Services().Audit().V2().AuditEvent()
>    periodEvents, err := periodService.List(
>        ctx,
>        &audit.ListAuditEventRequest{
>            ParentId: "<tenant_ID>",
>            Start: timestamppb.New(periodStart),
>            End: timestamppb.New(periodEnd),
>            Region: "<region_ID>",
>        },
>    )
>    if err != nil {
>        return fmt.Errorf("list audit events: %w", err)
>    }
>    fmt.Println(periodEvents)
>    ```
>
>    In the code, specify:
>
>    * `ParentId`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-go-sdk).
>    * `Start`: Start time for the search, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format with a timezone, for example, `2026-05-07T10:00:00Z`.
>    * `End`: End time for the search, in the ISO 8601 format with a timezone.
>    * `Region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
>    For example, to get all the events that happened in March 2025:
>
>    ```go theme={null}
>    marchStart, err := time.Parse(
>        time.RFC3339, "2025-03-01T00:00:00Z",
>    )
>    if err != nil {
>        return fmt.Errorf("parse start time: %w", err)
>    }
>    marchEnd, err := time.Parse(
>        time.RFC3339, "2025-04-01T00:00:00Z",
>    )
>    if err != nil {
>        return fmt.Errorf("parse end time: %w", err)
>    }
>    marchService := sdk.Services().Audit().V2().AuditEvent()
>    marchEvents, err := marchService.List(
>        ctx,
>        &audit.ListAuditEventRequest{
>            ParentId: "<tenant_ID>",
>            Start: timestamppb.New(marchStart),
>            End: timestamppb.New(marchEnd),
>            Region: "<region_ID>",
>        },
>    )
>    if err != nil {
>        return fmt.Errorf("list audit events: %w", err)
>    }
>    fmt.Println(marchEvents)
>    ```
>
>    In this example, `Start` is `2025-03-01T00:00:00Z` and `End` is `2025-04-01T00:00:00Z`. Set `ParentId` to the [tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-go-sdk) and `Region` to the [region](https://docs.nebius.com/overview/regions.md).
>
> 2. (Optional) By default, only control plane events are shown.
>
>    * **Control plane events** (default): Track management operations on resources, such as creating, updating, or deleting virtual machines, clusters, or other infrastructure resources.
>
>    * **Data plane events**: Track data access operations, such as reading or writing objects in Object Storage buckets.
>
>    To view data plane events, set `EventType` to `audit.EventType_DATA_PLANE`:
>
>    ```go theme={null}
>    dataPlaneStart, err := time.Parse(
>        time.RFC3339, "<time_in_ISO_8601>",
>    )
>    if err != nil {
>        return fmt.Errorf("parse start time: %w", err)
>    }
>    dataPlaneEnd, err := time.Parse(
>        time.RFC3339, "<time_in_ISO_8601>",
>    )
>    if err != nil {
>        return fmt.Errorf("parse end time: %w", err)
>    }
>    dataPlaneService := sdk.Services().Audit().V2().AuditEvent()
>    dataPlaneEvents, err := dataPlaneService.List(
>        ctx,
>        &audit.ListAuditEventRequest{
>            ParentId: "<tenant_ID>",
>            Start: timestamppb.New(dataPlaneStart),
>            End: timestamppb.New(dataPlaneEnd),
>            EventType: audit.EventType_DATA_PLANE,
>            Region: "<region_ID>",
>        },
>    )
>    if err != nil {
>        return fmt.Errorf("list audit events: %w", err)
>    }
>    fmt.Println(dataPlaneEvents)
>    ```
>
>    In the code, specify:
>
>    * `ParentId`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-go-sdk).
>    * `Start`: Start time for the search, in the ISO 8601 format with a timezone.
>    * `End`: End time for the search, in the ISO 8601 format with a timezone.
>    * `EventType`: `audit.EventType_DATA_PLANE`.
>    * `Region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
> 3. (Optional) To narrow down events, use [filters](https://docs.nebius.com/audit-logs/events/filter.md#how-to-filter-events-by-using-the-cli-or-an-sdk-go-sdk).

> [tab] Python SDK
>
> 1. Get all events in the tenant:
>
>    ```python theme={null}
>    event_service = AuditEventServiceClient(sdk)
>    events = await event_service.list(
>        ListAuditEventRequest(
>            parent_id="<tenant_ID>",
>            start=datetime.fromisoformat("<time_in_ISO_8601>"),
>            end=datetime.fromisoformat("<time_in_ISO_8601>"),
>            region="<region_ID>",
>        ),
>    )
>    print(events)
>    ```
>
>    In the code, specify:
>
>    * `parent_id`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-python-sdk).
>    * `start`: Start time for the search, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format with a timezone, for example, `2026-05-07T00:00:00Z`. On Python 3.10, use `+00:00` instead of `Z`.
>    * `end`: End time for the search, in the ISO 8601 format with a timezone, for example, `2026-05-08T00:00:00Z`. On Python 3.10, use `+00:00` instead of `Z`.
>    * `region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
>    For example, to get all the events that happened in March 2025:
>
>    ```python theme={null}
>    event_service = AuditEventServiceClient(sdk)
>    events = await event_service.list(
>        ListAuditEventRequest(
>            parent_id="<tenant_ID>",
>            start=datetime.fromisoformat("2025-03-01T00:00:00Z"),
>            end=datetime.fromisoformat("2025-04-01T00:00:00Z"),
>            region="<region_ID>",
>        ),
>    )
>    print(events)
>    ```
>
>    In this example, `start` is `2025-03-01T00:00:00Z` and `end` is `2025-04-01T00:00:00Z`. On Python 3.10, use `+00:00` instead of `Z`. Set `parent_id` to the [tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-python-sdk) and `region` to the [region](https://docs.nebius.com/overview/regions.md).
>
> 2. (Optional) By default, only control plane events are shown.
>
>    * **Control plane events** (default): Track management operations on resources, such as creating, updating, or deleting virtual machines, clusters, or other infrastructure resources.
>
>    * **Data plane events**: Track data access operations, such as reading or writing objects in Object Storage buckets.
>
>    To view data plane events, set `event_type` to `EventType.DATA_PLANE`:
>
>    ```python theme={null}
>    event_service = AuditEventServiceClient(sdk)
>    events = await event_service.list(
>        ListAuditEventRequest(
>            parent_id="<tenant_ID>",
>            start=datetime.fromisoformat("<time_in_ISO_8601>"),
>            end=datetime.fromisoformat("<time_in_ISO_8601>"),
>            event_type=EventType.DATA_PLANE,
>            region="<region_ID>",
>        ),
>    )
>    print(events)
>    ```
>
>    In the code, specify:
>
>    * `parent_id`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-python-sdk).
>    * `start`: Start time for the search, in the ISO 8601 format with a timezone, for example, `2026-05-07T00:00:00Z`. On Python 3.10, use `+00:00` instead of `Z`.
>    * `end`: End time for the search, in the ISO 8601 format with a timezone, for example, `2026-05-08T00:00:00Z`. On Python 3.10, use `+00:00` instead of `Z`.
>    * `event_type`: `EventType.DATA_PLANE`.
>    * `region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
> 3. (Optional) To narrow down events, use [filters](https://docs.nebius.com/audit-logs/events/filter.md#how-to-filter-events-by-using-the-cli-or-an-sdk-python-sdk).

> [tab] JavaScript SDK
>
> 1. Get all events in the tenant:
>
>    ```ts theme={null}
>    const periodService = new AuditEventService(sdk);
>    const periodEvents = await periodService.list(
>      ListAuditEventRequest.create({
>        parentId: "<tenant_ID>",
>        start: dayjs("<time_in_ISO_8601>"),
>        end: dayjs("<time_in_ISO_8601>"),
>        region: "<region_ID>",
>      }),
>    ).result;
>    console.log(periodEvents);
>    ```
>
>    In the code, specify:
>
>    * `parentId`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-javascript-sdk).
>    * `start`: Start time for the search, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
>    * `end`: End time for the search, in the ISO 8601 format.
>    * `region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
>    For example, to get all the events that happened in March 2025:
>
>    ```ts theme={null}
>    const marchService = new AuditEventService(sdk);
>    const marchEvents = await marchService.list(
>      ListAuditEventRequest.create({
>        parentId: "<tenant_ID>",
>        start: dayjs("2025-03-01T00:00:00Z"),
>        end: dayjs("2025-04-01T00:00:00Z"),
>        region: "<region_ID>",
>      }),
>    ).result;
>    console.log(marchEvents);
>    ```
>
>    In this example, `start` is `2025-03-01T00:00:00Z` and `end` is `2025-04-01T00:00:00Z`. Set `parentId` to the [tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-javascript-sdk) and `region` to the [region](https://docs.nebius.com/overview/regions.md).
>
> 2. (Optional) By default, only control plane events are shown.
>
>    * **Control plane events** (default): Track management operations on resources, such as creating, updating, or deleting virtual machines, clusters, or other infrastructure resources.
>
>    * **Data plane events**: Track data access operations, such as reading or writing objects in Object Storage buckets.
>
>    To view data plane events, set `eventType` to `EventType.DATA_PLANE`:
>
>    ```ts theme={null}
>    const dataPlaneService = new AuditEventService(sdk);
>    const dataPlaneEvents = await dataPlaneService.list(
>      ListAuditEventRequest.create({
>        parentId: "<tenant_ID>",
>        start: dayjs("<time_in_ISO_8601>"),
>        end: dayjs("<time_in_ISO_8601>"),
>        eventType: EventType.DATA_PLANE,
>        region: "<region_ID>",
>      }),
>    ).result;
>    console.log(dataPlaneEvents);
>    ```
>
>    In the code, specify:
>
>    * `parentId`: [Tenant ID](https://docs.nebius.com/iam/get-tenants.md#how-to-get-a-tenant-id-javascript-sdk).
>    * `start`: Start time for the search, in the ISO 8601 format.
>    * `end`: End time for the search, in the ISO 8601 format.
>    * `eventType`: `EventType.DATA_PLANE`.
>    * `region`: [Region](https://docs.nebius.com/overview/regions.md) to search for audit events.
>
> 3. (Optional) To narrow down events, use [filters](https://docs.nebius.com/audit-logs/events/filter.md#how-to-filter-events-by-using-the-cli-or-an-sdk-javascript-sdk).
