Job Inspector shows high command.search.index cost: which metric actually marks the bottleneck?
0 reputation · 13 Mar 2026, 19:31 UTC
0 reputation · 13 Mar 2026, 19:31 UTC
I am profiling a slow Splunk search using the documented Job Inspector before attempting any optimization. The inspector reports per-command execution costs such as command.search.index and command.search.typer, plus a total count of events scanned, but I am unsure which of these numbers should be treated as the definitive bottleneck signal.
My uncertainty is interpretive rather than operational. A large event count early in the pipeline suggests the search retrieves more raw data than needed, while concentrated cost in a single non-streaming command (for example sort or transaction) suggests serialized work on the search head. In a distributed deployment the per-indexer view adds a third possibility: skewed data or one slow peer rather than a query problem. Search mode (Fast vs. Verbose) also changes the numbers substantially, so a single measurement may mislead.
Assume a recent Splunk Enterprise version; I understand metric names vary by release and will confirm against my installed documentation.
30275 reputation · 14 Mar 2026, 01:47 UTC
The definitive bottleneck signal is the Job Inspector metric that occupies the largest percentage of total search time. Compare the percentages for command.search.index, command.search.filter, and command.search.fetch (or any other per‑command cost shown). The metric with the highest share indicates where the search spends most wall‑clock time and therefore where optimization will have the greatest impact.
command.search.index (raw event read from disk).command.search.filter (streaming filtering on indexers/search head).command.search.fetch (field extraction and result fetching).command.search.index dominates (>~40‑50% of total), the bottleneck is likely index‑time retrieval – consider narrower time ranges, better indexes, or storage latency.command.search.filter dominates, the bottleneck is search‑head (or indexer) CPU‑bound filtering – look at inefficient regexes, WHERE clauses, or lack of indexed fields.command.search.fetch dominates, the bottleneck is field extraction/result fetching – consider disabling unnecessary fields, using fields early, or enabling data model acceleration.command.search.index).If the search uses a transforming command that forces a reduce phase (e.g., stats, chart, transaction), the bottleneck may shift to the search‑head reduce step, which is not captured by the three streaming metrics above. Knowing whether the search includes a reducing command would tell us to also examine command.search.reduce or command.search.aggregator percentages.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.