Prompt
Why is log ingestion so slow in my logging platform?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
Log ingestion is usually slow because one or more bottlenecks show up somewhere in the pipeline from app → shipper/agent → network → parsing/indexing → storage.
Common causes:
- Too much parsing at ingest time
- Heavy grok/regex, JSON flattening, enrichment lookups, or schema transformation can be CPU-expensive.
- Indexing overhead
- Creating too many fields, high-cardinality fields, or lots of small indexes/shards can slow writes a lot.
- Storage I/O limits
- Slow disks, saturated SSDs, network-attached storage latency, or poor write amplification can throttle ingestion.
- Backpressure from downstream systems
- Elasticsearch/OpenSearch, Kafka, ClickHouse, Splunk indexers, etc. may be underprovisioned or queueing.
- Network constraints
- Packet loss, low bandwidth, MTU issues, TLS overhead, or cross-region ingestion can create delays.
- Agent/collector bottlenecks
- Fluent Bit/Fluentd/Logstash/Vector/Filebeat may be CPU-bound, memory-starved, or misconfigured with tiny buffers.
- Batching and flush settings
- Small batches increase per-event overhead; too-large batches can cause retries or memory pressure.
- Compression/encryption overhead
- TLS, gzip/zstd, and message serialization can add CPU cost, especially on smaller hosts.
- Retry storms / queue buildup
- If sinks are slow or temporarily failing, queues grow and ingestion latency increases.
- Hot shards / uneven load
- One node or shard getting most traffic can become a choke point.
- Too many concurrent pipelines
- Competing ingest jobs, transforms, or alerts can contend for CPU, memory, and disk.
How to pinpoint it quickly:
- Measure end-to-end latency
- Time from log creation to visibility in the platform.
- Check where queueing happens
- Agent buffer, broker topic lag, indexer queue, storage write queue.
- Look at CPU, memory, disk IOPS, and network
- Especially on collectors and indexers.
- Compare raw ingest vs parsed/indexed ingest
- If raw is fast but parsed is slow, transformation is the issue.
- Inspect cardinality and mappings
- Too many unique fields or dynamic mappings can hurt badly.
- Review batch sizes and retry rates
- Retries often indicate downstream saturation.
- Check for shard/index imbalance
- Hot partitions and too many shards are classic causes.
If you want, I can help you troubleshoot this systematically if you share:
- your logging platform,
- ingest path (agent → broker → indexer, etc.),
- approximate EPS/GB per day,
- current latency,
- and any recent config changes.