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 messages are saved, they are forwarded from storage to a router that determines which destination to route them to. Plugins are used to work with various inputs and outputs.
The Cloud Logging plugin lets you 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, which is required for 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 a name for the application.
- Target log group ID: Specify an ID of the log group to which logs will be transmitted.
- Service account key for Cloud Logging: 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.
-
Wait for the application to change its status to
Deployed
.
Yandex Cloud technical support is available 24/7. The types of requests you can submit and the appropriate response time depend on your pricing plan. You can switch to the paid support plan in the management console. You can learn more about the technical support terms here.
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 |