Skip to main content

Question

How do I output the send_logs_level output to a file using the ClickHouse Client for multiple statements and multiple lines?

Answer

  • Create a SQL file with the statements, for example, send_logs_level_example.sql:
  • Run command to write to the screen and to the file:
  • Example results:
Reference link: https://clickhouse.com/docs/operations/settings/settings#send_logs_level
Last modified on June 19, 2026