Clickhouse: system.query_log table is not documented

Created on 2 Jun 2017  Â·  7Comments  Â·  Source: ClickHouse/ClickHouse

comp-documentation

Most helpful comment

https://github.com/BayoNet is going to add the documentation.

What's the meaning of type column? — that was my initial question, though.

1 - successful start of query execution
2 - successful end of query execution
3 - exception before start of query execution
4 - exception while query execution

Each query create one or two events in query_log table:

  • two events with types 1 and 2: usual, successful case;
  • two events with types 1 and 4;
  • single event with type 3;

All 7 comments

What's the meaning of type column? — that was my initial question, though.

https://github.com/BayoNet is going to add the documentation.

What's the meaning of type column? — that was my initial question, though.

1 - successful start of query execution
2 - successful end of query execution
3 - exception before start of query execution
4 - exception while query execution

Each query create one or two events in query_log table:

  • two events with types 1 and 2: usual, successful case;
  • two events with types 1 and 4;
  • single event with type 3;

Are there any way to avoid writing INSERT queries into query_log ?

There is no way. Please note, that INSERTs are logged without data.

can I safely truncate query_log table?

can I safely truncate query_log table?

Yes, it's 100% safe.

Documentation is added and available on the official website:
https://clickhouse.yandex/docs/en/operations/system_tables/#system_tables-query-log

Was this page helpful?
0 / 5 - 0 ratings