Splunk Search

Tool for measuring search performance based different types of searches

swatishs
Explorer

Is there a tool available that will bombard Splunk with different types of search queries such as dense, sparse, rare etc. and return the result as how much time it took and how many events it returned?
I am planning to get this type of result: https://docs.splunk.com/Documentation/Splunk/7.2.3/Capacity/Referencehardware#Maximum_performance_ca...

I am using Splunk version 7.2.3. I tried Splunkit tool, but that was throwing some Selenium errors. Any suggestions?

0 Karma

burwell
SplunkTrust
SplunkTrust

If you create your own savedsearches as suggested by @jessec_splunk, you can view the stats in the audit log. For example:

index=_audit savedsearch_name=*  savedsearch_name!="" info=completed host=<regexfor your heads> 
|stats p90(total_run_time) by savedsearch_name
0 Karma

jessec_splunk
Splunk Employee
Splunk Employee

A few ways you can bombard Splunk with searches and measure times:

  1. You can script curl calls to the Splunk Web, using the REST APIs for searches. See API information, see here: https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing. Essentially you can dynamically create concurrent sessions of calls like stated in this answer.

  2. Use JMeter to issue the HTTP API calls. You will have better control of the concurrency (so you can adjust your load), and the performance report is provided by JMeter. And of course, because you are using Splunk, you can just send JTL files (JMeter result file) to Splunk and let it visualize everything for you.

  3. You can also create your own saved searches (to have dense, rare, sparse). These saved searches will run on cron schedules as specified by you (say, once every minute for rare, once every 5 minutes for dense, etc.), so they will automatically be trigger to run and generate results in Splunk's _internal index. You can then query that index for response times and event counts with something like 'search index=_internal source=*scheduler.log savedsearch_name=myperftest*

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...