Dashboards & Visualizations

Visualization of a dashboard based on condition using in single value

nessrine_talbi
Explorer

Hello , my question is about how to make a condition based on result of request serach ( single value ) [if that value > X ] then obtain
another Dashboard on the same principal Dashboard .

I need your help please !

Thanks in advance .

0 Karma
1 Solution

nessrine_talbi
Explorer

Hello,

At first thanks for your response , so i tried your proposition but it doesn't works for me ,

so i added this code and it works :

  1. I add this code in the first panel :

            <done>
            <condition match="$result.value$ >  100">
             <set token="idpanel">true</set>
            </condition>
            <condition>
             <unset token="idpanel"></unset>
            </condition>
          </done>
    
  2. second I add the token in the new Panel :

View solution in original post

0 Karma

nessrine_talbi
Explorer

Hello,

At first thanks for your response , so i tried your proposition but it doesn't works for me ,

so i added this code and it works :

  1. I add this code in the first panel :

            <done>
            <condition match="$result.value$ >  100">
             <set token="idpanel">true</set>
            </condition>
            <condition>
             <unset token="idpanel"></unset>
            </condition>
          </done>
    
  2. second I add the token in the new Panel :

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Are you using multiple accounts to ask the same question?

https://answers.splunk.com/answers/814837/condition-on-single-value.html

@amelbahrouni

0 Karma

nessrine_talbi
Explorer

can you help us please !

0 Karma

skoelpin
SplunkTrust
SplunkTrust

I'm unsure what you mean by then obtain another Dashboard on the same principal Dashboard .

Are you referring to passing results from one panel to another in the same dashboard?

0 Karma

nessrine_talbi
Explorer

At first Thanks for your response ,
so i have an principal dashboard that contain single value panel , and i want to make condition on that value ( value > 100 ) then based on that condition we can see another panel on the same dashboard .

0 Karma

skoelpin
SplunkTrust
SplunkTrust

First panel needs conditional logic in it like this

| eval logic=if(value>100,'value',"")

Next panel needs to set the tokens to accept the results from the first conditional panel like this

<done>
            <set token="pass_value">$result.logic$</set>
</done>

You than pass the token name in-line of your search pass_value

0 Karma

nessrine_talbi
Explorer

No we are not the same person but we work on the same project.
Ps : She's my Colleague

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...