Clickhouse
Luden supports ClickHouse as a destination. For more information about ClickHouse see docs.
Configuration
ClickHouse destination config consists of following schema:
#We recommend to set up Clickhouse TLS config separately from destinations.
#That allows sharing TLS config between destinations and makes possible to configure secure connection with configurator UI
clickhouse:
tls_config:
maincert: path_to_crt_file
cert2: path_to_crt_file2
#Destinations config
destinations:
clickhouse_1:
type: clickhouse
clickhouse:
dsns:
- "https://username:password@host1:8443/mydb?read_timeout=5m&timeout=5m&enable_http_compression=1&tls_config=maincert"
- "https://username:password@host2:8443/mydb?read_timeout=5m&timeout=5m&enable_http_compression=1&tls_config=maincert"
- "https://username:password@host3:8443/mydb?read_timeout=5m&timeout=5m&enable_http_compression=1&tls_config=maincert"
db: mydb
cluster: mycluster
engine:
raw_statement: "ENGINE = ReplacingMergeTree(_timestamp) ORDER BY (event_id)" #Optional
nullable_fields:
- middle_name
- event_description
partition_fields:
- function: toYYYYMMDD
field: _timestamp
- field: event_type
order_fields:
- function: intHash32
field: id
primary_keys:
- event_id #Must be equal to server.unique_id_field
Last updated