AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::FirelensConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing FirelensConfiguration as input to an Aws::Client method, you can use a vanilla Hash:

{
  type: "fluentd", # required, accepts fluentd, fluentbit
  options: {
    "String" => "String",
  },
}

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing in the Amazon Elastic Container Service Developer Guide.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#optionsHash<String,String>

The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":`{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}` . For more information, see Creating a Task Definition that Uses a FireLens Configuration in the Amazon Elastic Container Service Developer Guide.

Returns:

  • (Hash<String,String>)

    The options to use when configuring the log router.

#typeString

The log router to use. The valid values are fluentd or fluentbit.

Possible values:

  • fluentd
  • fluentbit

Returns:

  • (String)

    The log router to use.