ClickHouse log levels

3,698 views
Skip to first unread message

Den Gribkov

unread,
Sep 5, 2016, 4:52:06 AM9/5/16
to ClickHouse
Hello,

Unfortunately I didn't find such info in official documentation.

Could you please explain which levels could be used for ClickHouse logger?
By default it configured like:
        <logger>
               
<level>trace</level>
               
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
               
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
               
<size>1000M</size>
               
<count>10</count>
       
</logger>


and generates huge number of messages on high loaded server.

Thank you.

man...@gmail.com

unread,
Sep 8, 2016, 8:47:44 AM9/8/16
to ClickHouse
Hello.

Log levels are trace, debug, information, warning, error (in decreasing verbosity).
Using 'trace' log level (by default) usually doesn't have much impact on performance, but size of log files are indeed large.
If it is not suitable for you, switch log level to 'debug'.

I not recommend to use 'warning' or 'error' log levels, because too much information is lost.

By the way, If there are too much log messages, it is worth to check, you does not insert data in too small batches (one second batches or more is recommended).
Also, it is worth to look, what exactly log messages are generated. If you don't need log messages with '<Trace>' substring, switch log level to 'debug' and so on.

tdingus

unread,
Jun 28, 2017, 4:20:26 PM6/28/17
to ClickHouse
Hi, 

After clickhouse-server has started, I don't see any log file generated:/var/log/clickhouse-server/clickhouse-server.log

Do I need to do anything to enable the logging?

Thanks
Reply all
Reply to author
Forward
Message has been deleted
0 new messages