ClickHouse
ClickHouse (clickhouse)
Section titled “ClickHouse (clickhouse)”Write events to a ClickHouse table using the HTTP interface or native endpoint.
Database Licensed editions json
Minimal example
Section titled “Minimal example”output: clickhouse: endpoint: ~ table: ~JSON
{ "output": { "clickhouse": { "endpoint": null, "table": null } }}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
retry |
Retry |
How to retry failed inserts. | |
batch |
Batch |
Batch events before inserting. |
Authentication
Section titled “Authentication”Authentication
| Field | Type | Required | Description |
|---|---|---|---|
auth |
Auth |
Optional authentication settings (basic auth, token, or TLS material). |
Connection
Section titled “Connection”Connection
| Field | Type | Required | Description |
|---|---|---|---|
endpoint |
string |
✅ | Base endpoint (example: https://localhost:8443 or http://cluster-router:8123). |
database |
string |
Optional database override; defaults to server-side default database. | |
table |
string |
✅ | Target table for writes. |
compression |
Compression |
Optional compression codec negotiated with the server. Allowed values: none, lz4 |
|
settings |
map (string) |
Additional ClickHouse setting key/value pairs (forwarded as query params). | |
insecure-skip-verify ✓ |
boolean (bool) |
Skip TLS certificate verification (development only). Default: false |
|
timezone |
string |
Optional timezone override used when formatting temporal data. |
Payload
Section titled “Payload”Payload
| Field | Type | Required | Description |
|---|---|---|---|
input-field |
field (string) |
Optional event field to treat as the raw payload. When omitted the entire event is used. Examples: data_field |
|
format |
Format |
Insert format to use when sending data to ClickHouse. Allowed values: json-each-row, json-compact-each-row, csv, values |
Schema
Section titled “Schema”Schema
| Field | Type | Required | Description |
|---|---|---|---|
columns |
Columns[] |
Declarative column mapping; leave empty to stream JSONEachRow documents. |
Schema
Section titled “Schema”- Retry Fields
- Batch Fields
- Auth Fields
- Columns Fields
- Settings Table
- Batch - Mode Options
- Compression Options
- Format Options
Retry Fields
Section titled “Retry Fields”| Field | Type | Required | Description |
|---|---|---|---|
count |
number (integer) |
The number of retry attempts. If unspecified, retries will continue indefinitely. Examples: 42, 1.2e-10 |
|
pause |
duration (string) |
How long to pause before re-trying. Accepts human-friendly formats, like 1m (for 1 minute) and 4h (for 4 hours) |
Batch Fields
Section titled “Batch Fields”| Field | Type | Required | Description |
|---|---|---|---|
fixed-size ✓ |
number (integer) |
maximum number of events in an output batch. Examples: 42, 1.2e-10 |
|
max-bytes ✓ |
number (integer) |
Close the batch before adding an event that would make the serialized request payload exceed this many bytes. Examples: 42, 1.2e-10 |
|
mode |
Mode |
✅ | If ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.Allowed values: fixed, document |
timeout |
time-interval (string) |
✅ | interval after which the batch is sent, to keep throughput going (default 100ms). Default: 100msExamples: 500ms, 2h |
header |
multiline-text (string) |
put a header line before the batch. | |
footer |
multiline-text (string) |
put a header line after the last line of the batch. | |
use-document-marker ✓ |
boolean (bool) |
Enrich the job metadata with a document marker (for document handling in batch mode). Default: false |
|
wrap-as-json ✓ |
boolean (bool) |
Format the output batch as a JSON array. Default: false |
Auth Fields
Section titled “Auth Fields”| Field | Type | Required | Description |
|---|---|---|---|
username |
string |
||
password |
string |
||
access-token |
string |
||
tls-certificate |
string |
||
tls-key |
string |
Columns Fields
Section titled “Columns Fields”| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
✅ | |
field |
string |
Event field name (dot-notation) to pull data from. | |
pointer |
json-pointer (string) |
JSON Pointer to extract from the event (used when field is insufficient). | |
expression |
string |
Optional ClickHouse expression to compute the column. | |
type |
string |
Explicit ClickHouse type (e.g. DateTime64(3), Nullable(String)). | |
default |
string |
Default value used when the source field/pointer resolves to null. | |
codec |
string |
Optional codec hint (e.g. LZ4, ZSTD). |
Settings Table
Section titled “Settings Table”| Setting | Value |
|---|---|
setting.name |
value |
Value format: templated-text.
Batch - Mode Options
Section titled “Batch - Mode Options”| Value | Aliases | Name | Description |
|---|---|---|---|
fixed |
fixed | ||
document |
document |
Compression Options
Section titled “Compression Options”| Value | Aliases | Name | Description |
|---|---|---|---|
none |
none | ||
lz4 |
lz4 |
Format Options
Section titled “Format Options”| Value | Aliases | Name | Description |
|---|---|---|---|
json-each-row |
json-each-row | ||
json-compact-each-row |
json-compact-each-row | ||
csv |
csv | ||
values |
values |