FluentdLogDriverProps

class aws_cdk.aws_ecs.FluentdLogDriverProps(*, env=None, env_regex=None, labels=None, tag=None, address=None, async_connect=None, buffer_limit=None, max_retries=None, retry_wait=None, sub_second_precision=None)

Bases: aws_cdk.aws_ecs.BaseLogDriverProps

__init__(*, env=None, env_regex=None, labels=None, tag=None, address=None, async_connect=None, buffer_limit=None, max_retries=None, retry_wait=None, sub_second_precision=None)

Specifies the fluentd log driver configuration options.

Source

Parameters
  • env (Optional[List[str]]) – The env option takes an array of keys. If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message. Default: - No env

  • env_regex (Optional[str]) – The env-regex option is similar to and compatible with env. Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options. Default: - No envRegex

  • labels (Optional[List[str]]) – The labels option takes an array of keys. If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message. Default: - No labels

  • tag (Optional[str]) – By default, Docker uses the first 12 characters of the container ID to tag log messages. Refer to the log tag option documentation for customizing the log tag format. Default: - The first 12 characters of the container ID

  • address (Optional[str]) – By default, the logging driver connects to localhost:24224. Supply the address option to connect to a different address. tcp(default) and unix sockets are supported. Default: - address not set.

  • async_connect (Optional[bool]) – Docker connects to Fluentd in the background. Messages are buffered until the connection is established. Default: - false

  • buffer_limit (Union[int, float, None]) – The amount of data to buffer before flushing to disk. Default: - The amount of RAM available to the container.

  • max_retries (Union[int, float, None]) – The maximum number of retries. Default: - 4294967295 (2**32 - 1).

  • retry_wait (Optional[Duration]) – How long to wait between retries. Default: - 1 second

  • sub_second_precision (Optional[bool]) – Generates event logs in nanosecond resolution. Default: - false

Attributes

address

Supply the address option to connect to a different address. tcp(default) and unix sockets are supported.

default :default: - address not set.

Type

By default, the logging driver connects to localhost

Return type

Optional[str]

async_connect

Docker connects to Fluentd in the background.

Messages are buffered until the connection is established.

default :default: - false

Return type

Optional[bool]

buffer_limit

The amount of data to buffer before flushing to disk.

default :default: - The amount of RAM available to the container.

Return type

Union[int, float, None]

env

The env option takes an array of keys.

If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.

default :default: - No env

Return type

Optional[List[str]]

env_regex

The env-regex option is similar to and compatible with env.

Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.

default :default: - No envRegex

Return type

Optional[str]

labels

The labels option takes an array of keys.

If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.

default :default: - No labels

Return type

Optional[List[str]]

max_retries

The maximum number of retries.

default :default: - 4294967295 (2**32 - 1).

Return type

Union[int, float, None]

retry_wait

How long to wait between retries.

default :default: - 1 second

Return type

Optional[Duration]

sub_second_precision

Generates event logs in nanosecond resolution.

default :default: - false

Return type

Optional[bool]

tag

By default, Docker uses the first 12 characters of the container ID to tag log messages.

Refer to the log tag option documentation for customizing the log tag format.

default :default: - The first 12 characters of the container ID

Return type

Optional[str]