Fluent Bit is an open-source multi-platform tool for collecting and processing logs. Fluent Bit collects, parses, and filters messages from a variety of inputs and saves them to storage. Once a message is saved, it is forwarded from storage to a router that determines which destination to route it to. Plugins are used to work with various inputs and outputs.
A plugin for Cloud Logging is used to export logs generated in Kubernetes clusters, including at the pod level, to Yandex Cloud Logging.
-
Create a Kubernetes cluster and a node group.
-
Create a service account to run Fluent Bit.
-
Create an authorized key for the service account and save it to a file named
sa-key.json
:yc iam key create \ --service-account-name <service account name> \ --output sa-key.json
-
Create a log group.
-
If you want to save logs to Yandex Object Storage:
-
Create a bucket.
-
Assign the service account the
storage.uploader
role. -
Create a static access key for the service account and save it in JSON format:
{ "access_key": { "id": "xxxxxx", "created_at": "xxxxxx", "key_id": "xxxxxx" }, "secret": "xxxxxx" }
-
-
Set the Fluent Bit settings:
- Namespace: Select a namespace or create a new one.
- Application name: Enter an application name.
- Log group ID: Specify an ID of the log group to which logs will be transmitted.
- Service account key: Paste the contents of the
sa-key.json
file. - Save logs to Object Storage: Select this option if you want to save logs to Object Storage.
- Object Storage bucket name: Specify the name of the bucket where logs will be stored. Leave the field blank if you do not want to save logs.
- Static access key for Object Storage: Paste the static access key in JSON format. Leave the field blank if you do not want to save logs.
-
Click Install.
Yandex Cloud technical support responds to requests 24/7. The types of requests available and their response time depend on your pricing plan. You can activate paid support in the management console. Learn more about requesting technical support.
Helm chart | Version | Pull-command | Documentation |
---|---|---|---|
yandex-cloud/fluent-bit/fluent-bit | 2.1.7-3 | Open |
Docker image | Version | Pull-command |
---|---|---|
yandex-cloud/fluent-bit/fluent-bit-cloud-logging1701079897859423187256687180511815549489281836246 | v2.1.1-fluent-bit-2.1.7 | |
yandex-cloud/fluent-bit/busybox1701079897859423187256687180511815549489281836246 | v1.36 | |
yandex-cloud/fluent-bit/configmap-reload1701079897859423187256687180511815549489281836246 | v0.11.1 |