clickhouse-odbc-bridge is a separate program that the ClickHouse server starts when a query uses the ODBC table engine, the odbc table function or an ODBC dictionary source. Its logging is configured in the configuration of the server: add odbc_bridge_* keys to the logger section, and the server passes them to the bridge when it starts it.
This applies to self-managed ClickHouse.
Configuration
Create a file in theconfig.d directory of the server, for example /etc/clickhouse-server/config.d/odbc_bridge_logging.xml:
logger settings of the server itself (level, log, errorlog and others) stay as they are.
Each key is optional and is turned into one command-line option of the bridge:
If a key is absent, the server does not pass the option and the bridge uses its own default. The server passes no other logging options, so its own
logger settings do not apply to the bridge.
The files are written by the bridge process, so the directory must exist and be writable by the operating system user that the bridge runs as.
When the change takes effect
The server reads these keys at the moment it starts the bridge. It starts the bridge when a query needs ODBC and no bridge is answering, and the bridge then keeps running with the options it was started with. New logging settings therefore apply only to a newly started bridge. The runningclickhouse-odbc-bridge process has to stop first; a normal restart of the server stops it. The server starts a new bridge with the current configuration the next time a query uses ODBC.