v.21.11New Features

FileLog Table Engine for Streaming Application Log Files in ClickHouse

Streaming consumption of application log files in ClickHouse with FileLog table engine. It's like Kafka or RabbitMQ engine but for append-only and rotated logs in local filesystem. Closes #6953. #25969 (flynn) (Kseniia Sumarokova).
Introduces the FileLog table engine for streaming consumption of append-only and rotated application log files from the local filesystem, similar to how Kafka or RabbitMQ engines handle messages.

Why it matters

This feature addresses the need to efficiently process and analyze application log files in real-time within ClickHouse, enabling seamless ingestion of append-only and rotated logs without relying on external message brokers. It simplifies the workflow for users who want to directly consume local log files as streaming data sources.

How to use it

Create a table with the FileLog engine specifying the log file path and format. ClickHouse will then stream new entries from these append-only or rotated log files for continuous querying. Usage is similar to engines like Kafka, but operates directly on local file-based logs.