File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ The following template variables can be used for values with the `Add` option. S
37
37
38
38
#### Example 1: Attach Task ID and cluster name to container logs
39
39
40
- ``` text
40
+ ``` text copy
41
41
[INPUT]
42
42
Name tail
43
43
Tag ecs.*
@@ -79,7 +79,7 @@ The output log should be similar to:
79
79
80
80
#### Example 2: Attach customized resource name to container logs
81
81
82
- ``` text
82
+ ``` text copy
83
83
[INPUT]
84
84
Name tail
85
85
Tag ecs.*
@@ -124,7 +124,7 @@ Notice that the template variables in the value for the `resource` key are separ
124
124
125
125
This examples shows a use case for the ` Cluster_Metadata_Only ` option- attaching cluster metadata to ECS Agent logs.
126
126
127
- ``` text
127
+ ``` text copy
128
128
[INPUT]
129
129
Name tail
130
130
Tag ecsagent.*
@@ -152,10 +152,11 @@ This examples shows a use case for the `Cluster_Metadata_Only` option- attaching
152
152
153
153
#### Example 4: Attach task metadata using container ID field
154
154
155
- Attaches the cluster metadata, as well as task metadata using the already populated field ` container_id ` containing the
156
- container ID to query the ECS introspection endpoint. In this configuration the tag can be set to anything.
155
+ Attaches the cluster metadata and task metadata using the populated ` container_id `
156
+ field, which includes the container ID to query the ECS introspection endpoint. In this
157
+ configuration the tag can be set to anything.
157
158
158
- ``` text
159
+ ``` text copy
159
160
[INPUT]
160
161
Name forward
161
162
Listen 0.0.0.0
You can’t perform that action at this time.
0 commit comments