Pipeline Presets
Nginx Access JSON Logs to Self-Hosted ClickHouse HTTP Sink
Ship 25,000 EPS of Nginx JSON access logs straight into ClickHouse JSONEachRow tables with gzip batch compression and 4 threaded output workers.
25,000 EPS · 4 HTTP Workers · Gzip 4.5x Ratio · $12/mo Node
Avoiding ClickHouse TooManyParts Errors
Sending tiny 50-row HTTP inserts every 100 ms overwhelms ClickHouse background merges. Setting Flush 1 or 2 seconds with 2 MB chunks aggregates thousands of Nginx log rows per HTTP POST.
Bypassing Regex Overhead Completely
Configuring Nginx access_log with escape=json lets Fluent Bit ingest records with its fast JSON parser rather than backtracking regex, saving over 60% CPU per vCPU core.
Measured Parameters & Shipper Configuration Directives
| Directive / Parameter | Recommended Setting | Operational Reason |
|---|---|---|
| Nginx Log Format | escape=json log_format | Eliminates expensive PCRE regex parsing inside the shipper |
| ClickHouse HTTP URI | /?query=INSERT%20INTO%20logs.events%20FORMAT%20JSONEachRow | Streams compressed NDJSON batches with zero middleware broker |
| Output Compression | Compress gzip · Workers 4 | Cuts wire bandwidth by ~78% across WAN or VPC links |
| Batch Flush Cadence | Flush 1s · storage.max_chunks_up 256 | Builds large ClickHouse parts cleanly without TooManyParts errors |