Skip to main content

How to output send logs level traces to file using the clickhouse-client

How to output send logs level traces to file using the clickhouse-client

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/en/operations/settings/settings#send_logs_level

· 3 min read