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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...