Splunk Search

How long does the ad hoc search run ?

sunrise
Contributor

Hi Splunkers,

Priviously our search head were down with 100% CPU and memory used.
That was caused by background searches like below which continues to run over 24 hours.

index=*

Now I know the way to stop and suspend background searches,
but I don't know specifically that what situations ad hoc searches continue to run.

Do ad hoc searches continue to run until that get the results ?

Thank you for your help.

Tags (2)
0 Karma
1 Solution

pradeepkumarg
Influencer

You can control the search run time of user queries from authorize.conf

Define srchMaxTime attribute for the desired roles.. More details below.

http://docs.splunk.com/Documentation/Splunk/6.1.3/admin/Authorizeconf

View solution in original post

0 Karma

pradeepkumarg
Influencer

You can control the search run time of user queries from authorize.conf

Define srchMaxTime attribute for the desired roles.. More details below.

http://docs.splunk.com/Documentation/Splunk/6.1.3/admin/Authorizeconf

0 Karma

ben_leung
Builder

When running ad hoc searches, you should specify the time range, other wise you might be searching all-time, which causes load and is not really productive in my opinion. They will continue to run until all results are found that have been specified by your search query. So for example, the above query, "index=*" it will search all indices without any fields filtering out the results, thus having a longer run time.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...