Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

FireLens Example: Logging to Sematext with Fluent Bit

For documentation on sending your logs from AWS ECS running on either AWS Fargate or AWS EC2 to Sematext Logs, see: Elastic Container Service (ECS) Logs Integration.

AWS recommends that you store sensitive information, like your Sematext LOGS_TOKEN using secretOptions as shown in the example Task Definition. This is optional; it is also valid to simply specify the LOGS_TOKEN in the logConfiguration. Note, the URI field needs to have a / in front of the token:

"logConfiguration": {
    "logDriver":"awsfirelens",
    "options": {
        "Name": "http",
        "Match": "*",
        "Header": "sourceName nginx",
        "Host": "logs-ecs-receiver.sematext.com",
        "URI": "/<LOGS_TOKEN>",
        "Port": "443",
        "TLS": "on",
        "Format": "json",
        "Compress": "gzip",
        "Retry_Limit": "2"
    }
},

Note: If you are using the EU region of Sematext, use this Host value: "Host": "logs-ecs-receiver.eu.sematext.com"