Splunk Search

Performance Issues with a search command line

dmorio
New Member

Hello,
I am beginning in Splunk and am told to resolve some calculation times issues using searches.
The functionnality should do the following :
The first of the month, for example "2013, April 1st", it gets the applicative monthly logs from index "test" for January, February, March. Here is the search syntax :

index="test" sourcetype="test_source_type" | timechart span=1mon eval(round(count(),0)) by httpDomain | addtotals | rename _time AS Time | eval Time=strftime(Time, "%B %y")

A dashboard display the differents values grouped by Month.

The problem is that the processing time is extremely high because the search is on All Indexed Data. I know there are several possibilities, (using Collect command to create Archive index, accelerate mode, ...) but I cannot implement this in a good way.
Would you have some ideas please ? A good practice ? It could be very helpfull.

The Splunk System is 4.2.5

I am ready to send some more informations or print screens when necessary

Thank you and best regards.

David

Tags (1)
0 Karma

Lucas_K
Motivator

For large time ranges + larger amounts of data you should use summary indexing to pre-process your events into statistics.

In a nutshell your spreading out the computational cost over time. Alternatively look at increasing the efficiency of your search by limiting the raw events that your first search (the one before your first pipe). The less raw results required by the search the faster it will run.

How long does your search take to run currently?

If this is a search that will be run via a dashboard (ie. its not just a once off) then definitely use summary indexing.

More info on summary indexing here : http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...