aws-for-fluent-bit
by Helm
Helm chartv0.2.1App 3.2.1
A Helm chart to deploy aws-for-fluent-bit project
About this chart
AWS for fluent bit
A helm chart for AWS-for-fluent-bit
Installing the Chart
Add the EKS repository to Helm:
helm repo add eks https://aws.github.io/eks-charts
Install or upgrading the AWS for fluent bit chart with default configuration:
helm upgrade --install aws-for-fluent-bit --namespace kube-system eks/aws-for-fluent-bit
Uninstalling the Chart
To uninstall/delete the aws-for-fluent-bit release:
helm delete aws-for-fluent-bit --namespace kube-system
Configuration
| Parameter | Description | Default | Required |
|---|---|---|---|
global.namespaceOverride | Override the deployment namespace | Not set (Release.Namespace) | |
image.repository | Image to deploy | amazon/aws-for-fluent-bit | ✔ |
image.tag | Image tag to deploy | stable | |
image.pullPolicy | Pull policy for the image | IfNotPresent | ✔ |
podSecurityContext | Security Context for pod | {} | |
containerSecurityContext | Security Context for container | {} | |
rbac.pspEnabled | [DEPRECATED] Whether a pod security policy should be created. PSP was removed in Kubernetes 1.25. See the Kubernetes documentation for migration guidance | false | |
imagePullSecrets | Docker registry pull secret | [] | |
serviceAccount.create | Whether a new service account should be created | true | |
serviceAccount.name | Name of the service account | aws-for-fluent-bit | |
service.extraService | Append to existing service with this value | HTTP_Server On HTTP_Listen 0.0.0.0 HTTP_PORT 2020 Health_Check On HC_Errors_Count 5 HC_Retry_Failure_Count 5 HC_Period 5 | |
service.parsersFiles | List of available parser files | /fluent-bit/parsers/parsers.conf | |
service.extraParsers | Adding more parsers with this value | "" | |
input.enabled | Enable the tail input to collect kubernetes pod logs | true | |
input.tag | The tag pattern for pod logs | kube.* | |
input.path | Path pattern for pod logs | /var/log/containers/*.log | |
input.db | DB to track file offsets and files read | /var/log/flb_kube.db | |
input.multilineParser | Specify one more or more multiline parsers. Only the first that matches is applied; therefore, use this field to parse docker or cri log format, and then use the multiline filter if additional custom multiline parsing rules need to be applied. | docker, cri | |
input.memBufLimit | Limit the buffer memory used by the tail input. | 5MB | |
input.skipLongLines | On means that long lines will be skipped instead of the entire log file | On | |
input.refreshInterval | The interval to refresh the list of watched files in seconds. | 10 | |
extraInputs | Append to existing input with this value | "" | |
additionalInputs | Adding more inputs with this value | "" | |
filter.* | Values for kubernetes filter | ||
filter.extraFilters | Append to existing filter with value | ||
additionalFilters | Adding more filters with value | ||
luaScripts | Optional map of Lua script filename to content, mounted at /fluent-bit/scripts/ | {} | |
cloudWatch.enabled | Enable this to activate old golang plugin details. For guidance on choosing go vs c plugin, please refer to debugging guide | false | ✔ |
cloudWatch.match | The log filter | * | ✔ |
cloudWatch.region | The AWS region for CloudWatch. | us-east-1 | ✔ |
cloudWatch.logGroupName | The name of the CloudWatch Log Group that you want log records sent to. | "/aws/eks/fluentbit-cloudwatch/logs" | ✔ |
cloudWatch.logStreamName | The name of the CloudWatch Log Stream that you want log records sent to. | ||
cloudWatch.logStreamPrefix | Prefix for the Log Stream name. The tag is appended to the prefix to construct the full log stream name. Not compatible with the log_stream_name option. | "fluentbit-" | |
cloudWatch.logKey | By default, the whole log record will be sent to CloudWatch. If you specify a key name with this option, then only the value of that key will be sent to CloudWatch. For example, if you are using the Fluentd Docker log driver, you can specify logKey log and only the log message will be sent to CloudWatch. | ||
cloudWatch.logRetentionDays | If set to a number greater than zero, and newly create log group's retention policy is set to this many days. | ||
cloudWatch.logFormat | An optional parameter that can be used to tell CloudWatch the format of the data. A value of json/emf enables CloudWatch to extract custom metrics embedded in a JSON payload. See the Embedded Metric Format. | ||
cloudWatch.roleArn | ARN of an IAM role to assume (for cross account access). | ||
cloudWatch.autoCreateGroup | Automatically create the log group. Valid values are "true" or "false" (case insensitive). | true | |
cloudWatch.endpoint | Specify a custom endpoint for the CloudWatch Logs API. | ||
cloudWatch.credentialsEndpoint | Specify a custom HTTP endpoint to pull credentials from. more info | ||
cloudWatch.extraOutputs | Append extra outputs with value | "" | |
cloudWatchLogs.enabled | This section is used to enable new high performance plugin. The Golang plugin was named cloudwatch; this new high performance CloudWatch plugin is called cloudwatch_logs in fluent bit configuration to prevent conflicts/confusion details. For guidance on choosing go vs c plugin, please refer to debugging guide | true | ✔ |
cloudWatchLogs.match | The log filter | * | ✔ |
cloudWatchLogs.region | The AWS region for CloudWatch. | us-east-1 | ✔ |
cloudWatchLogs.logGroupName | The name of the CloudWatch Log Group that you want log records sent to. | "/aws/eks/fluentbit-cloudwatch/logs" | ✔ |
cloudWatchLogs.logGroupTemplate | Template for Log Group name using Fluent Bit record_accessor syntax. This field is optional and if configured it overrides the logGroupName. If the template translation fails, an error is logged and the logGroupName (which is still required) is used instead. | ||
cloudWatchLogs.logStreamName | The name of the CloudWatch Log Stream that you want log records sent to. | ||
cloudWatchLogs.logStreamPrefix | Prefix for the Log Stream name. The tag is appended to the prefix to construct the full log stream name. Not compatible with the log_stream_name option. | "fluentbit-" | |
cloudWatchLogs.logStreamTemplate | Template for Log Stream name using Fluent Bit record_accessor syntax. This field is optional and if configured it overrides the other log stream options. If the template translation fails, an error is logged and the log_stream_name or log_stream_prefix are used instead (and thus one of those fields is still required to be configured). | ||
cloudWatchLogs.logKey | By default, the whole log record will be sent to CloudWatch. If you specify a key name with this option, then only the value of that key will be sent to CloudWatch. For example, if you are using the Fluentd Docker log driver, you can specify logKey log and only the log message will be sent to CloudWatch. Check the example here. | ||
cloudWatchLogs.logFormat | An optional parameter that can be used to tell CloudWatch the format of the data. A value of json/emf enables CloudWatch to extract custom metrics embedded in a JSON payload. See the Embedded Metric Format. | ||
cloudWatchLogs.roleArn | ARN of an IAM role to assume (for cross account access). | ||
cloudWatchLogs.autoCreateGroup | Automatically create the log group. Valid values are "true" or "false" (case insensitive). | true | |
cloudWatchLogs.logRetentionDays | If set to a number greater than zero, and newly create log group's retention policy is set to this many days. | ||
cloudWatchLogs.endpoint | Specify a custom endpoint for the CloudWatch Logs API. | ||
cloudWatchLogs.metricNamespace | An optional string representing the CloudWatch namespace for the metrics. Please refer to tutorial. | ||
cloudWatchLogs.metricDimensions | A list of lists containing the dimension keys that will be applied to all metrics. If you have only one list of dimensions, put the values as a comma separated string. If you want to put list of lists, use the list as semicolon separated strings. Please refer to tutorial. | ||
cloudWatchLogs.stsEndpoint | Specify a custom STS endpoint for the AWS STS API. | ||
cloudWatchLogs.autoRetryRequests | Immediately retry failed requests to AWS services once. This option does not affect the normal Fluent Bit retry mechanism with backoff. Instead, it enables an immediate retry with no delay for networking errors, which may help improve throughput when there are transient/random networking issues. This option defaults to true. Please check here for more details | ||
cloudWatchLogs.externalId | Specify an external ID for the STS API, can be used with the role_arn parameter if your role requires an external ID. | ||
cloudWatchLogs.extraOutputs | Append extra outputs with value. This section helps you extend current chart implementation with ability to add extra parameters. For example, you can add network config like cloudWatchLogs.extraOutputs.net.dns.mode=TCP. | "" | |
firehose.enabled | Whether this plugin should be enabled or not, details | false | ✔ |
firehose.match | The log filter | "*" | ✔ |
firehose.region | The region which your Firehose delivery stream(s) is/are in. | "us-east-1" | ✔ |
firehose.deliveryStream | The name of the delivery stream that you want log records sent to. | "my-stream" | ✔ |
firehose.dataKeys | By default, the whole log record will be sent to Kinesis. If you specify a key name(s) with this option, then only those keys and values will be sent to Kinesis. For example, if you are using the Fluentd Docker log driver, you can specify data_keys log and only the log message will be sent to Kinesis. If you specify multiple keys, they should be comma delimited. | ||
firehose.roleArn | ARN of an IAM role to assume (for cross account access). | ||
firehose.endpoint | Specify a custom endpoint for the Kinesis Firehose API. | ||
firehose.timeKey | Add the timestamp to the record under this key. By default the timestamp from Fluent Bit will not be added to records sent to Kinesis. | ||
firehose.timeKeyFormat | strftime compliant format string for the timestamp; for example, %Y-%m-%dT%H:%M:%S%z. This option is used with time_key. | ||
firehose.extraOutputs | Append extra outputs with value | "" | |
kinesis_streams.enabled | It has all the core features of the documentation Golang Fluent Bit plugin released in 2019. The Golang plugin was named kinesis; this new high performance and highly efficient kinesis plugin is called kinesis_streams to prevent conflicts/confusion, details | false | ✔ |
kinesis_streams.region | The AWS region. | ✔ | |
kinesis_streams.stream | The name of the Kinesis Streams Delivery Stream that you want log records send to. | ✔ | |
kinesis_streams.endpoint | Specify a custom endpoint for the Kinesis Streams API. | ||
kinesis_streams.role_arn | ARN of an IAM role to assume (for cross account access). | ||
kinesis_streams.sts_endpoint | Custom endpoint for the STS API. | ||
kinesis_streams.time_key | Add the timestamp to the record under this key. By default the timestamp from Fluent Bit will not be added to records sent to Kinesis. | ||
kinesis_streams.time_key_format | strftime compliant format string for the timestamp; for example, the default is %Y-%m-%dT%H:%M:%S. Supports millisecond precision with %3N and supports nanosecond precision with %9N and %L; for example, adding %3N to support millisecond %Y-%m-%dT%H:%M:%S.%3N. This option is used with time_key. | ||
kinesis_streams.log_key | By default, the whole log record will be sent to Kinesis. If you specify a key name with this opti |
Deploy aws-for-fluent-bit with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-for-fluent-bit on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaws-for-fluent-bit is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply