Troubleshooting Fluent Bit
The following sections help you troubleshoot the Fluent Bit component of the Logging operator.
Check the Fluent Bit daemonset
Verify that the Fluent Bit daemonset is available. Issue the following command: kubectl get daemonsets
The output should include a Fluent Bit daemonset, for example:
Check the Fluent Bit configuration
You can display the current configuration of the Fluent Bit daemonset using the following command:
kubectl get secret logging-demo-fluentbit -o jsonpath="{.data['fluent-bit\.conf']}" | base64 --decode
The output looks like the following:
Debug version of the fluentbit container
All Fluent Bit image tags have a debug version marked with the -debug
suffix. You can install this debug version using the following command:
kubectl edit loggings.logging.banzaicloud.io logging-demo
After deploying the debug version, you can kubectl exec into the pod using sh
and look around. For example: kubectl exec -it logging-demo-fluentbit-778zg sh
Check the queued log messages
You can check the buffer directory if Fluent Bit is configured to buffer queued log messages to disk instead of in memory. (You can configure it through the InputTail fluentbit config, by setting the storage.type
field to filesystem
.)
kubectl exec -it logging-demo-fluentbit-9dpzg ls /buffers
Getting Support
If you encounter any problems that the documentation does not address, file an issue or talk to us on Discord or Slack.
Before asking for help, prepare the following information to make troubleshooting faster:
- Logging operator version
- kubernetes version
- helm/chart version (if you installed the Logging operator with helm)
- Logging operator logs
- fluentd configuration
- fluentd logs
- fluentbit configuration
- fluentbit logs
Do not forget to remove any sensitive information (for example, passwords and private keys) before sharing.