Loki Server Presets
Firewall Syslog & Nginx Access 600 GB/Day Preset (11x ZSTD)
Leverage 10x-11x repetitive syslog ZSTD compression ratios to retain 600 GB/day for 90 days inside 6.4 TB.
11x ZSTD Ratio · 6.4 TB (90d) · 12 GB Cache · $48/mo 8-Slice
Never Use Client IP as a Loki Label
Extracting source_ip into a stream label during a port scan creates hundreds of thousands of streams in seconds. Parse IPs at query time with LogQL pattern/logfmt.
11x Compression Advantage
Repetitive firewall and Nginx access templates compress up to 11x under ZSTD, letting an 8 TB InterServer Storage node hold 90 days of 600 GB/day logs.
Measured Thresholds & Loki TSDB Parameters
| Metric | Value | Why It Scales |
|---|---|---|
| Daily Compressed Size | 54.5 GB chunks + 13.2 GB TSDB | High repetition in syslog headers yields 11x |
| Ingestion Rate Limit | ingestion_rate_mb: 32 / burst: 64 | Absorbs DDoS/scan log floods without drops |
| Stream Count Cap | max_global_streams_per_user: 15000 | Prevents attacker IP labels from OOMing Loki |