|
| 1 | +# Fluent Bit |
| 2 | + |
| 3 | +Fluent Bit is a lightweight and high-performance log processor and forwarder. It allows you to collect data or logs from different sources, unify them, and send them to multiple destinations including Elasticsearch, OpenSearch, Kafka, Datadog, and more. |
| 4 | + |
| 5 | +### How it works |
| 6 | + |
| 7 | +Fluent Bit runs as a DaemonSet in the Kubernetes cluster and collects logs from each node. The logs are parsed, filtered, and enriched with Kubernetes metadata before being shipped to the specified backend. This configuration is fully customizable via Fluent Bit configuration blocks defined in the Helm `values.yaml`. |
| 8 | + |
| 9 | +The default configuration in this package collects logs from containers in `/var/log/containers/*.log` and system logs via `systemd`, filters them using Kubernetes metadata, and forwards them to an Elasticsearch endpoint. |
| 10 | + |
| 11 | +## Prerequisites |
| 12 | + |
| 13 | +Kubernetes 1.27 and higher are supported. |
| 14 | + |
| 15 | +The following cloud types are supported: |
| 16 | +* all clouds |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +## Parameters |
| 21 | + |
| 22 | +| **Parameter** | **Description** | **Type** | **Default Value** | **Required** | |
| 23 | +|---|---|---|---|---| |
| 24 | +| charts.fluent-bit.kind | Kubernetes controller to use (DaemonSet or Deployment) | string | DaemonSet | Yes | |
| 25 | +| charts.fluent-bit.image.repository | Image repository for Fluent Bit | string | cr.fluentbit.io/fluent/fluent-bit | Yes | |
| 26 | +| charts.fluent-bit.image.pullPolicy | Image pull policy | string | IfNotPresent | No | |
| 27 | +| charts.fluent-bit.flush | Interval (in seconds) to flush the logs | integer | 1 | No | |
| 28 | +| charts.fluent-bit.logLevel | Logging level for Fluent Bit | string | info | No | |
| 29 | +| charts.fluent-bit.metricsPort | Port for exposing metrics | integer | 2020 | No | |
| 30 | +| charts.fluent-bit.config.service | Main Fluent Bit service configuration | string | See values.yaml | Yes | |
| 31 | +| charts.fluent-bit.config.inputs | Log input configuration | string | See values.yaml | Yes | |
| 32 | +| charts.fluent-bit.config.filters | Filters applied to logs (e.g. Kubernetes metadata) | string | See values.yaml | Yes | |
| 33 | +| charts.fluent-bit.config.outputs | Log output configuration | string | See values.yaml | Yes | |
| 34 | +| charts.fluent-bit.config.customParsers | Custom parsers for log messages | string | See values.yaml | No | |
| 35 | +| charts.fluent-bit.daemonSetVolumes | Volumes to mount for log access | list | /var/log, /var/lib/docker/containers, /etc/machine-id | Yes | |
| 36 | +| charts.fluent-bit.daemonSetVolumeMounts | Mount points in Fluent Bit containers | list | See values.yaml | Yes | |
| 37 | +| charts.fluent-bit.service.port | Port exposed by the Fluent Bit service | integer | 2020 | No | |
| 38 | +| charts.fluent-bit.rbac.create | Whether to create RBAC resources | bool | true | No | |
| 39 | +| charts.fluent-bit.podSecurityPolicy.create | Whether to create PodSecurityPolicy | bool | false | No | |
| 40 | +| charts.fluent-bit.hotReload.enabled | Enable configmap hot reload with sidecar | bool | false | No | |
| 41 | +| charts.fluent-bit.autoscaling.enabled | Enable horizontal pod autoscaler (only for Deployment) | bool | false | No | |
| 42 | + |
| 43 | +## References |
| 44 | + |
| 45 | +- [Fluent Bit Official Docs](https://docs.fluentbit.io/manual) |
| 46 | +- [Fluent Bit Helm Chart](https://github.com/fluent/helm-charts/tree/main/charts/fluent-bit) |
| 47 | +- [Spectro Cloud Docs - Fluent Bit](https://docs.spectrocloud.com/integrations/fluentbit) |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +This package is maintained by **Spectro Cloud** and is provided as a community-supported integration. |
| 52 | + |
| 53 | +**Version:** 4.0.3 |
| 54 | + |
| 55 | +**Source:** community |
| 56 | + |
| 57 | +**Contributor:** Spectro Cloud |
| 58 | + |
0 commit comments