Skip to content

Commit 105200e

Browse files
Include instructions on configuring ECS tags (#30554)
Co-authored-by: Michael Cretzman <[email protected]>
1 parent 7fe5dd2 commit 105200e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

content/en/infrastructure/containers/amazon_elastic_container_explorer.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,28 @@ ecs_task_collection_enabled: true
5959
{{% /tab %}}
6060
{{< /tabs >}}
6161
62+
### Logs
63+
64+
For ECS on Fargate, it is recommended to use the [AWS FireLens integration][11] built on Datadog's Fluent Bit output plugin to send logs to Datadog. To ensure that logs are properly correlated between ECS resources and the log explorer, apply the following log configuration to apply the `aws_account` tag:
65+
```
66+
{
67+
"logConfiguration": {
68+
"logDriver": "awsfirelens",
69+
"options": {
70+
"Name": "datadog",
71+
"apikey": "<DATADOG_API_KEY>",
72+
"Host": "http-intake.logs.datadoghq.com",
73+
"dd_service": "...",
74+
"dd_source": "...",
75+
"dd_message_key": "log",
76+
"dd_tags": "aws_account:<ACCOUNT_ID>",
77+
"TLS": "on",
78+
"provider": "ecs"
79+
}
80+
}
81+
}
82+
```
83+
6284
## Usage
6385
6486
### Views
@@ -173,3 +195,4 @@ Some resources have specific tags. The following tags are available in addition
173195
[8]: /infrastructure/containers/orchestrator_explorer/?tab=manual#query-filter-details
174196
[9]: /getting_started/tagging/assigning_tags/?tab=containerizedenvironments
175197
[10]: /integrations/amazon_web_services/#resource-collection
198+
[11]: /integrations/aws-fargate/?tab=webui#fluent-bit-and-firelens

0 commit comments

Comments
 (0)