Splunk Search

run the second search query only after the first search query completes

harshal_chakran
Builder

Hi,
I have a dashboard in advance xml, where I am using a search query to run a python script :-

<view template="dashboard.html"><label></label>  <module name="AccountBar" layoutPanel="appHeader"/>  <module name="AppBar" layoutPanel="navigationHeader"/>  <module name="Message" layoutPanel="messaging">
<param name="filter">*</param>

<param name="clearOnJobDispatch">False</param>

<param name="maxSize">1</param>

<param name="mode">independent</param>

<param name="label"> Splunk Label</param>


<!-- THE SECOND SWITCHER CHILD -->

<module name="HiddenSearch" group=" " autoRun="True">

 <param name="search">| script python myScript</param>

  <param name="earliest">-1h</param>

  <module name="HiddenChartFormatter">


    <module name="JobProgressIndicator"/>

    <module name="FlashChart">

      <param name="width">100%</param>

      <param name="height">300px</param>

    </module>

  </module>

</module>   </module></view>

This search script takes some time to load. And I want another search query to be run, only after this script completes. Is there any way to do this.
Please Help...!!!

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi harshal_chakranarayan,

if you take your script and create a custom search command, then you could try to run this custom search command as HiddenSearch and postprocess the HiddenSearch results.

hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...