Thanks for that, but after I inspected the search log of both searches, I hope I am a step closer to the root cause.
Comparing the search log from the fast search (using uriBasePhp) and the slow search (using apiClass2), I found a big difference:
Fast:
10-18-2016 16:12:12.550 INFO LocalCollector - Final required fields list = subsecond,index,prestats_reserved,psrsvd_,uriBasePhp
10-18-2016 16:12:12.550 INFO UserManager - Unwound user context: admin -> NULL
10-18-2016 16:12:12.550 INFO UserManager - Setting user context: admin
10-18-2016 16:12:12.550 INFO UserManager - Done setting user context: NULL -> admin
10-18-2016 16:12:12.550 INFO UnifiedSearch - snapped earliest=1472659201 based on index min times
10-18-2016 16:12:12.550 INFO BatchSearch - Recategorizing indextest5~2~662F7CD7-EFD9-432E-867D-4901863BDEDC as non-restartable for responsiveness.
10-18-2016 16:12:12.550 INFO BatchSearch - Searching index:indextest5 with LISPY:'[ AND uribasephp::/product.php ]'
10-18-2016 16:12:12.550 INFO DatabaseDirectoryManager::Bucket - use_bloomfilter = true
10-18-2016 16:12:12.677 INFO SearchOperator:kv - no fields required. Running only non-optimizeable extractions ...
Slow:
10-18-2016 15:57:48.658 INFO LocalCollector - Final required fields list = BUFFER_POOL_AND_MEMORY,Message,raw,_subsecond,apiClass2,dest_ip,dest_mac,dest_nt_host,host,index,prestats_reserved,psrsvd_,source,src_dns,src_ip,uri
10-18-2016 15:57:48.658 INFO UserManager - Unwound user context: admin -> NULL
10-18-2016 15:57:48.658 INFO UserManager - Setting user context: admin
10-18-2016 15:57:48.658 INFO UserManager - Done setting user context: NULL -> admin
10-18-2016 15:57:48.658 INFO UnifiedSearch - snapped earliest=1472659201 based on index min times
10-18-2016 15:57:48.658 INFO BatchSearch - Recategorizing indextest5~2~662F7CD7-EFD9-432E-867D-4901863BDEDC as non-restartable for responsiveness.
10-18-2016 15:57:48.658 INFO BatchSearch - Searching index:indextest5 with LISPY:'[ AND product ]'
As seen in the bold part of the log, in the "slow" case, somehow Splunk decided to:
- Get more fields than I ask it to get (e.g. dest_ip, dest_mac, src_ip, etc.)
- Not to search from the indexed field apiClass2
But why??? How can I fix it? I have also shared the two search log files in https://goo.gl/6X02r2
... View more