> ## 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 logging export create

## Name

`nebius logging export create`

Create a new log export.

## Synopsis

```
nebius logging export create
  --bucket-id
  --bucket-name
  --bucket-parent-id
  --filter
  --from
  --labels
  --log-format
  --object-prefix
  --parent-id [required]
  --to
  --async
```

## Examples

**Export logs to an Object Storage bucket**

```
nebius logging export create \
  --parent-id <project_ID> \
  --bucket-name <bucket_name> \
  --filter '<LogQL_match_expression>' \
  --from <time_in_ISO_8601> \
  --to <time_in_ISO_8601> \
  --log-format <output_format> \
```

## Options

`--bucket-id` (string)

ID of the destination Object Storage bucket.

Mutually exclusive with: `--params-nebius-object-storage-by-name-name`, `--params-nebius-object-storage-by-name-parent-id`.

`--bucket-name` (string)

Name of the destination Object Storage bucket.

Mutually exclusive with: `--params-nebius-object-storage-id`.

`--bucket-parent-id` (string)

Project ID that owns the bucket. Required only when the bucket lives in a different project than `--parent-id`;\

defaults to `--parent-id` otherwise.

Mutually exclusive with: `--params-nebius-object-storage-id`.

`--filter` (string)

LogQL match expression selecting log entries to export.

`--from` (timestamp: 1970-01-31T02:30:59Z)

Start of the time range to export, ISO 8601 (e.g. `2025-12-21T20:00:00Z`).

`--labels` (string array)

Label names to include as columns in the exported data. Empty means export all labels.

`--log-format` (string)

Output file format.

A value must be one of:

<ul>
  <li>
    `export_format_unsupported`
  </li>

  <li>
    `json_gzip`
  </li>

  <li>
    `parquet`
  </li>
</ul>

`--object-prefix` (string)

Key prefix under which exported objects are written. Defaults to `logs/`.

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

Project ID whose logs are exported. Also used as the default owner of the destination bucket when the bucket is\

resolved by name and `--bucket-parent-id` is not set.

`--to` (timestamp: 1970-01-31T02:30:59Z)

End of the time range to export, ISO 8601 (e.g. `2025-12-22T00:00:00Z`).

`--async` (bool)

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

## 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}
> {                     
>   "params": {                  // [required]
>                                // What to export and where to write it.
>     "log": {                     // Export log entries selected by a LogQL match expression.
>       "export_labels": [string], // Label names to include as columns in the exported data. Empty means export all labels.
>       "filter": {                       // [required]
>                                         // Time range and LogQL match expression selecting log entries to export.
>         "from": "1970-01-31T02:30:59Z", // [required] [google.protobuf.Timestamp]
>                                         // Start of the time range to export, ISO 8601 (e.g. `2025-12-21T20:00:00Z`).
>         "match_expression": string,     // LogQL match expression selecting log entries to export.
>         "to": "1970-01-31T02:30:59Z"    // [required] [google.protobuf.Timestamp]
>                                         // End of the time range to export, ISO 8601 (e.g. `2025-12-22T00:00:00Z`).
>       },
>       "format": enum(                // [required]
>                                      // Output file format.
>         "EXPORT_FORMAT_UNSUPPORTED",
>         "JSON_GZIP",                 // JSON lines (one JSON object per line) compressed with gzip. Written as `.json.gz`.
>         "PARQUET"                    // Apache Parquet. Written as `.parquet`.
>       )
>     },
>     "nebius_object_storage": { // Write the export to a Nebius Object Storage bucket.
>                                //  NebiusObjectStorageDestinationRegistered nebius_object_storage_registered = 5; // to be added later
>                                // ObjectStorage object_storage = 6; // to be added later.
>       "by_name": {           // Cannot be set together with: id
>                              // Destination bucket.
>         "name": string,      // [required]
>                              // Name of the destination Object Storage bucket.
>         "parent_id": string  // Project ID that owns the bucket. Required only when the bucket lives in a different project than `--parent-id`;
>                              // defaults to `--parent-id` otherwise.
>       },
>       "id": string,            // Cannot be set together with: by_name
>                                // ID of the destination Object Storage bucket.
>       "object_prefix": string  // Key prefix under which exported objects are written. Defaults to `logs/`.
>     }
>   },
>   "parent_id": string  // [required]
>                        // Project ID whose logs are exported. Also used as the default owner of the destination bucket when the bucket is
>                        // resolved by name and `--bucket-parent-id` is not set.
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius logging export create '
> {                 
>   "params": {                 
>     "log": {                                                     
>       "export_labels": [""],                                     
>       "filter": {                      
>         "from": "1970-01-31T02:30:59Z",
>         "match_expression": "",        
>         "to": "1970-01-31T02:30:59Z"   
>       },
>       "format": "export_format_unsupported"|"json_gzip"|"parquet"
>     },
>     "nebius_object_storage": {
>       "by_name": {      
>         "name": "",     
>         "parent_id": "" 
>       },
>       "object_prefix": ""     
>     }
>   },
>   "parent_id": "" 
> }
> '
> ```

*Auto generated on 23-Nov-2026*
