Splunk Search

Splunk search used to run fast now its taking forever

aaronkorn
Splunk Employee
Splunk Employee

One of our Splunk searches that just searches for all events in an index for the last 24hrs used to be blazingly fast now its taking up to 10 min to retrieve the data. What can be done to troubleshoot? We received a message yesterday noting that field extractions were taking unusually long. Any ideas? Thanks!

0 Karma

piebob
Splunk Employee
Splunk Employee

one thing you could do is install the Splunk on Splunk app, it was created by Splunk's Suport team to help them troubleshoot user issues:
http://splunk-base.splunk.com/apps/29008/sos-splunk-on-splunk

you could also review the search in the Search Job Inspector:
http://docs.splunk.com/Documentation/Splunk/5.0.2/Search/UsingtheSearchJobInspector

in particular, you can see what parts of the search are taking the most resources:
http://docs.splunk.com/Documentation/Splunk/5.0.2/Search/UsingtheSearchJobInspector#Execution_costs

however, if the search hasn't changed, it's probable that the bottleneck is elsewhere in the system--i'm betting SoS can help.

piebob
Splunk Employee
Splunk Employee

i recommend asking this as a separate question--i don't know the answer, and the question is sorta buried down here 🙂

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

Looks like I found the issue. This one log was dumping in hundreds of exception messages that were exceeding 200+ lines. Is there a way to tell splunk to only look at the first so many lines of a message when pulling it in? IE look at an event and only pull in the first 50 lines or so?

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

Thanks for the feedback. We do have the SoS app installed but I couldnt notice any blaring errors in the logs. By looking at the inspector I see that much of the time spent on the command.search, command.search.kv, dispatch.fetch, and dispatch.stream.remote.

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, ...