Home / Companies / ClickHouse / Blog / Post Details
Content Deep Dive

Sending Kubernetes logs To ClickHouse with Fluent Bit

Blog post from ClickHouse

Post Details
Company
Date Published
Author
Calyptia
Word Count
1,650
Language
English
Hacker News Points
-
Summary

Fluent Bit is used to collect Kubernetes logs and send them to ClickHouse Cloud for analysis. The process involves deploying Fluent Bit on a Kubernetes cluster, modifying the Helm chart configuration to enrich log messages with namespace and pod information, and creating a table in ClickHouse to store the logs. The logs are then sent to ClickHouse using the HTTP output plugin, where they can be analyzed using SQL queries or visualized using tools like Grafana. The use of Fluent Bit's experimental JSON type allows for dynamic columns to be created automatically, but it is recommended to explicitly define types for expected fields and remove unused fields to minimize storage. Additionally, tuning the flush time for batches can help avoid common issues with high log volumes.