system.query_log | ClickHouse Documentation
clickhouse.com › system-tables › query_logTo force flushing, use the SYSTEM FLUSH LOGS query. ClickHouse does not delete data from the table automatically. See Introduction for more details. The system.query_log table registers two kinds of queries: Initial queries that were run directly by the client. Child queries that were initiated by other queries (for distributed query execution).
Command-Line Client | ClickHouse Documentation
clickhouse.com › docs › enThis works for all queries except INSERT. Query results are output consecutively without additional separators. Similarly, to process a large number of queries, you can run ‘clickhouse-client’ for each query. Note that it may take tens of milliseconds to launch the ‘clickhouse-client’ program.