Last active
February 5, 2021 16:17
-
-
Save maiconbaumx/427e633ffee3c6f1bfcdfc3771443203 to your computer and use it in GitHub Desktop.
AWS ECS Task container definitions using AWS FireLens with GELF.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"logConfiguration": { | |
"logDriver": "awsfirelens", | |
"options": { | |
"Port": "$gelf_udp_input_port", | |
"Host": "$graylog_address", | |
"Name": "gelf", | |
"Mode": "udp", | |
"Gelf_Short_Message_Key": "log", | |
"Gelf_Host_Key": "container_name", | |
"Gelf_Full_Message_Key": "log" | |
} | |
} | |
}, | |
{ | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"options": { | |
"awslogs-group": "$fluentbit_sidecar_cwl_group_name", | |
"awslogs-region": "$aws_region", | |
"awslogs-create-group": "true", | |
"awslogs-stream-prefix": "${application_name}" | |
} | |
}, | |
"memory": 100, | |
"image": "$aws_for_fluent_bit_image", | |
"firelensConfiguration": { | |
"type": "fluentbit", | |
"options": { | |
"enable-ecs-log-metadata": "true" | |
} | |
}, | |
"name": "log_router" | |
} | |
] |
Author
maiconbaumx
commented
Feb 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment