If all logs, including internal Splunk logs, are delayed, it often indicates a forwarding or indexing bottleneck. During investigation, it was found that an indexing queue blockage on the heavy forwarder was contributing to the issue, despite consistent data ingestion throughput.
Example log snippets from the heavy forwarder, indicating metrics related to the index_processor task:
07-19-2022 13:24:43.402 +0700 INFO Metrics - group=subtask_seconds, ingest_pipe=0, name=indexer, task=index_processor, replicate_semislice=0.000, throttle_optimize=0.000, flushBlockSig=0.000, retryMove_1hotBkt=0.000, size_hotBkt=0.000, roll_hotBkt=0.000, rebuild_metadata=0.000, service_externProc=0.000 07-19-2022 13:24:43.403 +0700 INFO Metrics - group=subtask_seconds, ingest_pipe=1, name=indexer, task=index_processor, replicate_semislice=0.000, throttle_optimize=0.000, flushBlockSig=0.000, retryMove_1hotBkt=0.000, size_hotBkt=0.000, roll_hotBkt=0.000, rebuild_metadata=0.000, service_externProc=0.000 07-19-2022 13:25:14.404 +0700 INFO Metrics - group=subtask_seconds, ingest_pipe=0, name=indexer, task=index_processor, replicate_semislice=0.000, throttle_optimize=0.000, flushBlockSig=0.000, retryMove_1hotBkt=0.000, size_hotBkt=0.000, roll_hotBkt=0.000, rebuild_metadata=0.000, service_externProc=0.000 07-19-2022 13:25:14.405 +0700 INFO Metrics - group=subtask_seconds, ingest_pipe=1, name=indexer, task=index_processor, replicate_semislice=0.000, throttle_optimize=0.000, flushBlockSig=0.000, retryMove_1hotBkt=0.000, size_hotBkt=0.000, roll_hotBkt=0.000, rebuild_metadata=0.000, service_externProc=0.000
Initial checks confirmed that all indexers were operational, with recent heartbeats. If only specific sources were delayed, it would point to an input issue, but in this case, the delay was across all logs, including internal ones.
To measure the indexing delay, you can use the following search query:
index=_internal source=*splunkd.log* | eval delay_sec=_indextime-_time
A potential cause for such delays can be timestamp or time zone discrepancies. If an event is immediately visible with a real-time search but not with a historical search, it might indicate that the event's timestamp is in the future. Historical searches (even "all-time") only display events within their defined time window.
Use the following search to verify the sourcetype, the detected timestamp (_time), the current time on the search head (now), and the applied timezone (date_zone):
source=mysource host=myhost | eval delay_sec=_indextime-_time | convert ctime(_indextime) AS indextime | eval now=now() | table _time indextime now date_zone source sourcetype host
Notes:
-The _time field is converted to the user profile's time zone configured on the search head at search time.
-The date_zone is applied at index time on the indexer.
Attempts to resolve the issue by performing rolling restarts on indexers and heavy forwarders were unsuccessful. The internal logs of both indexers (IDX) and search heads (SH) continued to show delays. The indexing latency continued to increase after the "Noah" migration, reaching up to 1.3 days of latency.
The core problem identified was indexing back pressure, specifically due to the failure to upload hot bucket slices quickly enough. This was exacerbated by over-ingestion, leading to a large number of failed slice uploads. Indexing latency could be as high as 50 minutes for prolonged periods, up to 6 hours.
To proactively mitigate this issue and prevent severe impact on the Splunk stack, it is recommended to adjust the following settings in the server.conf file on all indexers. These changes aim to decrease the number of failed slice uploads by optimizing the hot bucket streaming process.
File: server.conf
[hot_bucket_streaming] slices_upload_retry_pending = 500 slices_upload_executor_capacity = 400 slices_upload_executor_workers = 20
Important: A Splunk restart is required on all indexers where server.conf was modified for these changes to take effect.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |