> ## 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 stream create

## Name

`nebius logging stream create`

Creates a log stream.

## Synopsis

```
nebius logging stream create
  --disabled
  --filter-match-expression [required]
  --format-log-attributes-mode-attributes
  --format-message-json-mode
  --labels
  --name [required]
  --parent-id [required]
  --resource-version
  --sink-object-storage-by-name-name
  --sink-object-storage-by-name-parent-id
  --sink-object-storage-id
  --sink-object-storage-object-prefix
  --async
  -i, --interactive
```

## Options

`--disabled` (bool)

If set, logging stream would not be active and its effect on routing logs would not be applied.

`--filter-match-expression` (string)* \[required]*

LogQL match expression selecting log entries to export.\

Example: `{app="myapp"} |= "error"` selects logs from app "myapp" containing the word "error".

`--format-log-attributes-mode-attributes` (string array)

List of attributes to write to log stream, empty means all attributes.

Mutually exclusive with: `--format-message-json-mode`.

`--format-message-json-mode` (bool)

Enables "message-as-json" output format.

Mutually exclusive with: `--format-log-attributes-mode-attributes`.

`--labels` (string->string)

Labels associated with the resource.

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

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.

`--sink-object-storage-by-name-name` (string)

Name of the destination Object Storage bucket.

Mutually exclusive with: `--sink-object-storage-id`.

`--sink-object-storage-by-name-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: `--sink-object-storage-id`.

`--sink-object-storage-id` (string)

ID of the destination Object Storage bucket.

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

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

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

`--async` (bool)

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

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## 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": {                // [required]
>                                // Metadata of the log stream to create.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // [required]
>                                // 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.
>   },
>   "spec": {           // [required]
>                       // Specification of the log stream to create.
>     "disabled": bool, // If set, logging stream would not be active and its effect on routing logs would not be applied.
>     "filter": {                   // [required]
>                                   // Filter controls which logs are part of the stream.
>       "match_expression": string  // [required]
>                                   // LogQL match expression selecting log entries to export.
>                                   // Example: `{app="myapp"} |= "error"` selects logs from app "myapp" containing the word "error".
>     },
>     "format": {                // [required]
>                                // Format defines how log entries are written to the sink.
>       "log_attributes_mode": {  // Cannot be set together with: message_json_mode
>                                 // Enables structured log mode output format (timestamp, level, __region__, message, attributes map).
>         "attributes": [string]  // List of attributes to write to log stream, empty means all attributes.
>       },
>       "message_json_mode": { // [meaningful_empty_value]
>                              // Cannot be set together with: log_attributes_mode
>                              // Enables "message-as-json" output format.
>       }
>     },
>     "sink": {             // [required]
>                           // Sink is a destination to write logs to.
>       "object_storage": {        // Destination object storage where exported logs are written.
>         "by_name": {           // [immutable]
>                                // 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,            // [immutable]
>                                  // 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/`.
>       }
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius logging stream create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {           
>     "disabled": false,
>     "filter": {              
>       "match_expression": "" 
>     },
>     "format": {               
>       "log_attributes_mode": {
>         "attributes": [""]    
>       }
>     },
>     "sink": {            
>       "object_storage": {   
>         "by_name": {      
>           "name": "",     
>           "parent_id": "" 
>         },
>         "object_prefix": "" 
>       }
>     }
>   }
> }
> '
> ```

*Auto generated on 1-Dec-2026*
