Monitoring Splunk

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

nithys
Path Finder

 

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
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...