Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

FireLens Example: Logging to Datadog with Fluent Bit

For documentation on sending your FireLens monitored log data to Datadog Logs, see: Fluent Bit and Firelens.

It should be noted that this example and Datadog docs show "enable-ecs-log-metadata":"true" (which is the default). This option tells FireLens to add ECS Task Metadata keys to logs. However, the Datadog output intentionally will not send the metadata in the log and will instead convert the metadata to DataDog tags for easy searching and integration with other DataDog observability features.

For all configuration parameters for Fluent Bit DataDog output plugin, see DataDog or Fluent Bit documentation.

AWS recommends that you store sensitive information, like your Datadog API Key using secretOptions as shown in the example Task Definition. This is optional; it is also valid to simply specify the API Key in options map:

"logConfiguration": {
	"logDriver":"awsfirelens",
	"options": {
	   "Name": "datadog",
	   "Host": "http-intake.logs.datadoghq.com",
	   "TLS": "on",
	   "apikey": "<DATADOG_API_KEY>",
	   "dd_service": "my-httpd-service",
	   "dd_source": "httpd",
	   "dd_tags": "project:example",
	   "provider": "ecs",
	   "retry_limit": "2"
   }
},