Quick start
The simplest setup sends everything to one sink:Adding rules
Rules match data by source and send it to specific sinks. Rules are evaluated top to bottom — the first match wins.- Syslog data (both TCP and UDP) goes to ClickHouse and the disk sink — fan-out to two destinations
- The debug source goes to stdout only
- Everything else (TCP from SDKs, HTTP) falls through to the default: ClickHouse
Match conditions
Each rule has amatch object with one or both of these fields:
| Field | Matches |
|---|---|
source | Exact source name — "tcp", "tcp_debug", "syslog_tcp", "syslog_udp", "http" |
source_type | Source type — "tcp" matches all TCP sources, "syslog" matches both syslog TCP and UDP |
Evaluation order
- Rules are checked in the order they appear in the config file
- The first matching rule wins — no further rules are evaluated
- If no rule matches, data goes to the
defaultsinks - If no rule matches and
defaultis empty, the data is dropped