Splunk Search

how can I make search much faster ?

perlish
Communicator

I want to search a string *xxx* in the field with 21G data using sourcetype="datafile" id="*xxx*"
how can I make search much fatser ?
Thank you !

0 Karma

MarioM
Motivator

if you know what fields you want to see in the results you could only include those in your search :

sourcetype="datafile" id="*xxx*" | fields + sourcetype id otherfields

it will stop splunk trying to extract the other fields thus displaying the results faster

dwaddle
SplunkTrust
SplunkTrust

Searching for wildcarded strings -- especially with a wildcard on both beginning and end -- are not going to be very fast. You can look at the search job inspector output and see if there is anything there to point you at a specific cause, but my suspicion is this is hard to solve.

Your best bet for making this search much faster is to throw much more hardware at the problem. Add several indexers and distribute the data/search across them. Faster disks would probably help, too.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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