Skip to content

Commit adfdef3

Browse files
pipelines: filters: ecs: Update based on suggestions
Co-authored-by: Adam Locke <adam.locke@chronosphere.io> Signed-off-by: Doriann Corlouër <RaJiska@users.noreply.github.com>
1 parent aeb41db commit adfdef3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pipeline/filters/ecs-metadata.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following template variables can be used for values with the `Add` option. S
3737

3838
#### Example 1: Attach Task ID and cluster name to container logs
3939

40-
```text
40+
```text copy
4141
[INPUT]
4242
Name tail
4343
Tag ecs.*
@@ -79,7 +79,7 @@ The output log should be similar to:
7979

8080
#### Example 2: Attach customized resource name to container logs
8181

82-
```text
82+
```text copy
8383
[INPUT]
8484
Name tail
8585
Tag ecs.*
@@ -124,7 +124,7 @@ Notice that the template variables in the value for the `resource` key are separ
124124

125125
This examples shows a use case for the `Cluster_Metadata_Only` option- attaching cluster metadata to ECS Agent logs.
126126

127-
```text
127+
```text copy
128128
[INPUT]
129129
Name tail
130130
Tag ecsagent.*
@@ -152,10 +152,11 @@ This examples shows a use case for the `Cluster_Metadata_Only` option- attaching
152152

153153
#### Example 4: Attach task metadata using container ID field
154154

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 of the incoming log record can be set to anything.
157158

158-
```text
159+
```text copy
159160
[INPUT]
160161
Name forward
161162
Listen 0.0.0.0

0 commit comments

Comments
 (0)