Monitoring Splunk

How o refresh the result in panel whenever new dropdwn is selected?

nithys
Communicator

 

Hi @niketn How to perform an auto refresh once domain/data entity is selected to the result populates.
Next step when i try to click the second option from dropdown,the older result still remain.

Query used:
      <input type="dropdown" token="tokSystem" searchWhenChanged="true">

        <label>Domain Entity</label>

        <fieldForLabel>$tokEnvironment$</fieldForLabel>

        <fieldForValue>$tokEnvironment$</fieldForValue>

        <search>

          <query>| makeresults

          | eval goodsdevelopment="a",materialdomain="b,c",costsummary="d"</query>

        </search>

        <change>

          <condition match="$label$==&quot;a&quot;">

            <set token="inputToken">test</set>

            <set token="outputToken">test1</set>

          </condition>

          <condition match="$label$==&quot;c&quot;">

            <set token="inputToken">dev</set>

            <set token="outputToken">dev1</set>


<condition match="$label$==&quot;m&quot;">
<set token="inputToken">qa</set>
<set token="outputToken">qa1</set>
</condition>
</change>
------
<row>
<panel>
<html id="messagecount">
<style>
#user{
text-align:center;
color:#BFFF00;
}
</style>
<h2 id="user">INBOUND </h2>
</html>
</panel>
</row>
<row>
<panel>
<table>
<search>
<query>index=$indexToken1$ source IN ("/*-*-*-$inputToken$") 
| timechart count by ObjectType```| stats count by ObjectType</query>
<earliest>$time_picker.earliest$</earliest>
<latest>$time_picker.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
------<row>
<panel>

</style>
<h2 id="user">outBOUND </h2>
</html>
<chart>
<search>
<query>index=$indexToken$ source IN ("/*e-f-$outputToken$-*-","*g-$outputToken$-h","i-$outputToken$-j") </query>
<earliest>$time_picker.earliest$</earliest>
<latest>$time_picker.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>

 

 

Screenshot 2023-09-20 at 10.39.32 PM.png

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Your input set up seems a little unconventional, please confirm how you have actually set up the inputs and where all the tokens are coming from

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your input set up seems a little unconventional, please confirm how you have actually set up the inputs and where all the tokens are coming from

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!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...