# Fargate FluentBit Amazon EKS on Fargate offers a built-in log router based on Fluent Bit. This means that you don't explicitly run a Fluent Bit container as a sidecar, but Amazon runs it for you. All that you have to do is configure the log router. The configuration happens through a dedicated ConfigMap, that is deployed via this Add-on. ## Usage To configure the Fargate Fluentbit ConfigMap via the [EKS Blueprints Addons](https://github.com/aws-ia/terraform-aws-eks-blueprints-addons), just reference the following parameters under the `module.eks_blueprints_addons`. ```hcl module "eks_blueprints_addons" { enable_fargate_fluentbit = true fargate_fluentbit = { flb_log_cw = true } } ``` It's possible to customize the CloudWatch Log Group parameters in the `fargate_fluentbit_cw_log_group` configuration block: ```hcl fargate_fluentbit_cw_log_group = { name = "existing-log-group" name_prefix = "dev-environment-logs" retention_in_days = 7 kms_key_id = "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" skip_destroy = true ``` ## Validation 1. Check if the `aws-logging` configMap for Fargate Fluentbit was created. ```sh kubectl -n aws-observability get configmap aws-logging -o yaml apiVersion: v1 data: filters.conf: | [FILTER] Name parser Match * Key_Name log Parser regex Preserve_Key True Reserve_Data True flb_log_cw: "true" output.conf: | [OUTPUT] Name cloudwatch_logs Match * region us-west-2 log_group_name /fargate-serverless/fargate-fluentbit-logs20230509014113352200000006 log_stream_prefix fargate-logs- auto_create_group true parsers.conf: | [PARSER] Name regex Format regex Regex ^(?