Dashboards & Visualizations

How to match two conditions?

taha13
Explorer

Hello!!

So what I want to do is to match two conditions:

I have a condition named "15 minuttes" and other one named "hier". What I want to do is to match both of them so when it "15 minuttes" and "Hier" I load "Analyse_fine_du_Tchat_Hier30".

        <condition label="15 minuttes">
          <set token="earliest_token">$value$</set>
          <set token="show_Data_Labels_token">none</set>
          <set token="loadjob_token_analyse_fine">Analyse_fine_du_Tchat_Hier30</set>
        </condition>

        <condition label="Hier">
          <set token="earliest_token">$value$</set>
          <set token="show_Data_Labels_token">none</set>
          <set token="loadjob_token_analyse_fine">Analyse_fine_du_Tchat_Hier30</set>
        </condition>

Thank you

0 Karma

valiquet
Contributor

Assuming this is one single log entry

|eval token=if(condition{0}{@label}=="15 minuttes" AND condition{1}{@label}=="Hier", condition{1}.set{2},0)

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...