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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...