> ## 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.

# nebius audit v2 audit-event-export start

## Name

`nebius audit v2 audit-event-export start`

Start audit events export to s3 bucket for specific period.

## Synopsis

```
nebius audit v2 audit-event-export start [id]
  --id
  --labels
  --name
  --nebius-object-storage-bucket-by-id-id [required]
  --nebius-object-storage-object-prefix
  --params-event-type [required]
  --params-filter
  --params-from [required]
  --params-to [required]
  --parent-id [required]
  --region [required]
  --resource-version
  --async
```

## Examples

**Start an export**

```
nebius audit v2 audit-event-export start \
   --parent-id <tenant_ID> \
   --params-from <time_in_ISO_8601> \
   --params-to <time_in_ISO_8601> \
   --region <region_ID> \
   --nebius-object-storage-bucket-by-id-id <bucket_ID> \
   --params-event-type <control_plane|data_plane> \
   --nebius-object-storage-object-prefix <prefix> \
   --params-filter "<filter_expression>"
```

**Start an export filtered by resource ID**

```
nebius audit v2 audit-event-export start \
   --parent-id <tenant_ID> \
   --params-from <time_in_ISO_8601> --params-to <time_in_ISO_8601> \
   --params-event-type <control_plane|data_plane> \
   --nebius-object-storage-bucket-by-id-id <bucket_ID> \
   --nebius-object-storage-object-prefix <prefix> \
   --params-filter "resource.metadata.id='computeinstance-***'" \
   --region <region_ID>
```

**Start an export with combined filters**

```
nebius audit v2 audit-event-export start \
   --parent-id <tenant_ID> \
   --params-from 2025-04-01T00:00:00Z --params-to 2025-04-06T00:00:00Z \
   --params-event-type <control_plane|data_plane> \
   --nebius-object-storage-bucket-by-id-id <bucket_ID> \
   --nebius-object-storage-object-prefix <prefix> \
   --params-filter "authentication.subject.tenant_user_id='<tenant_user_ID>' \
      AND action='DELETE' \
      AND resource.metadata.type='computeinstance'" \
   --region <region_ID>
```

## Positional Arguments

`id`

Identifier for the resource, unique for its resource type.

## Options

`--id` (string)

Identifier for the resource, unique for its resource type.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--nebius-object-storage-bucket-by-id-id` (string)* \[required]*

The id of the bucket in the tenant where the logs will be exported.

`--nebius-object-storage-object-prefix` (string)

Prefix for export objects.\

Default value is `auditlogs`.

`--params-event-type` (string)* \[required]*

Type of audit event to filter by.

A value must be one of:

<ul>
  <li>
    `control_plane`
  </li>

  <li>
    `data_plane`
  </li>
</ul>

`--params-filter` (string)

Example:\

service.name = 'iam' AND resource.hierarchy.id:'container-e0t' AND regex(resource.metadata.name, '^.*test.*\$')\


Supported filters:\

"=" - equals\

"!=" - not equals\

":" - contains\

regex - regular expression\


Fields that can be used for filtering:\

action\

authentication.static\_key\_credential.id\

authentication.subject.service\_account\_id\

authentication.subject.tenant\_user\_id\

authentication.token\_credential.masked\_token\

resource.hierarchy.id\

resource.hierarchy.name\

resource.metadata.id\

resource.metadata.name\

resource.metadata.type\

service.name\

type\

status.

`--params-from` (timestamp: 1970-01-31T02:30:59Z)* \[required]*

Returns results with a timestamp greater than or equal to this value.

`--params-to` (timestamp: 1970-01-31T02:30:59Z)* \[required]*

Returns results with a timestamp lower than this value.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--region` (string)* \[required]*

Region to retrieve audit logs (e.g. eu-north2, us-central1, eu-west1)\

See [https://docs.nebius.com/overview/regions](https://docs.nebius.com/overview/regions.md).

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {                  
>   "metadata": {                // Metadata associated with the new export.
>     "id": string,              // [identifier]
>                                // Identifier for the resource, unique for its resource type.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "region": string, // [required]
>                     // Region to retrieve audit logs (e.g. eu-north2, us-central1, eu-west1)
>                     // See https://docs.nebius.com/overview/regions.
>   "spec": {                    // Specification for the new export.
>     "nebius_object_storage": { // An object storage bucket that will be used as the destination for audit logs.
>                                // You must have `storage.upload` permission for successful execution.
>       "bucket_by_id": {
>         "id": string    // [required]
>                         // The id of the bucket in the tenant where the logs will be exported.
>       },
>       "object_prefix": string  // Prefix for export objects.
>                                // Default value is `auditlogs`.
>     },
>     "params": {                       // [required]
>                                       // Filter based on which audit logs must be exported.
>       "event_type": enum(         // [required]
>                                   // Type of audit event to filter by.
>         "EVENT_TYPE_UNSPECIFIED", // Unspecified event type.
>         "CONTROL_PLANE",          // Control plane events.
>         "DATA_PLANE"              // Data plane events (S3).
>       ),
>       "filter": string,               // [sensitive]
>                                       // Example:
>                                       // service.name = 'iam' AND resource.hierarchy.id:'container-e0t' AND regex(resource.metadata.name, '^.*test.*$')
>                                       // 
>                                       // Supported filters:
>                                       // "=" - equals
>                                       // "!=" - not equals
>                                       // ":" - contains
>                                       // regex - regular expression
>                                       // 
>                                       // Fields that can be used for filtering:
>                                       // action
>                                       // authentication.static_key_credential.id
>                                       // authentication.subject.service_account_id
>                                       // authentication.subject.tenant_user_id
>                                       // authentication.token_credential.masked_token
>                                       // resource.hierarchy.id
>                                       // resource.hierarchy.name
>                                       // resource.metadata.id
>                                       // resource.metadata.name
>                                       // resource.metadata.type
>                                       // service.name
>                                       // type
>                                       // status.
>       "from": "1970-01-31T02:30:59Z", // [required] [google.protobuf.Timestamp]
>                                       // Returns results with a timestamp greater than or equal to this value.
>       "to": "1970-01-31T02:30:59Z"    // [required] [google.protobuf.Timestamp]
>                                       // Returns results with a timestamp lower than this value.
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius audit v2 audit-event-export start '
> {              
>   "metadata": {           
>     "id": "",             
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "region": "",
>   "spec": {                   
>     "nebius_object_storage": {
>       "bucket_by_id": {
>         "id": ""       
>       },
>       "object_prefix": ""     
>     },
>     "params": {                                                          
>       "event_type": "event_type_unspecified"|"control_plane"|"data_plane",
>       "filter": "",                                                      
>       "from": "1970-01-31T02:30:59Z",                                    
>       "to": "1970-01-31T02:30:59Z"                                       
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
