Splunk Search

How to accelerate the time is takes request to generate result?

chimell1
Explorer

Hi!

My request take much time to generate the result, how can i accelerate it

| mpreview index=ciusss_vitals_linux_metric
| stats latest(_time) as latest1 by host
| eval recent = if(latest1 > relative_time(now(),"-5m"),1,0), realLatest = strftime(latest1,"%c")
| search recent=0
| stats values(host) as host
| mvexpand host | map search="| ping host=$host$" maxsearches=200

Labels (1)
Tags (1)
0 Karma

yeahnah
Motivator

Hi @chimell1 

Using map (basically a loop) can be inherently slow if it needs to do lots of iterations.  Currently it could do up to 200 separate searches to complete the result set for you.

The "| ping " command is also a non standard Splunk command.  Is that from a custom command or from a third party app?  If the ping command is slow to return a result when it's run then you're limited by its speed too.  

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...