Overview
ClickHouse provides an experimentallogsql dialect for querying log tables with
VictoriaLogs LogsQL syntax.
It translates a LogsQL query to a ClickHouse SELECT query.
Enable it for a session and configure the source table:
fields, stats, sort, limit, format, extract, and unpack_json
are supported. Text filters expect String-backed log columns; typed fields can
be used with numeric comparisons and numeric statistics.
This dialect is experimental and is not a byte-for-byte implementation of
VictoriaLogs. Unsupported syntax is rejected with NOT_IMPLEMENTED; query
semantics can also differ where ClickHouse types, regular expressions, time
zones, or SQL aggregation rules differ. Use ordinary ClickHouse SQL when a
LogsQL construct is not supported or exact VictoriaLogs compatibility is needed.