Splunk Search

double condition on filtering

taha13
Explorer

So,it's my first question on the forum,
I'm working on a dashoard already done (i'm making chages);the conditions,the filtering....
And i have problem of double condition on filtering
So,normaly we have a basic query
alt text

And then we have the condition

alt text

And the span

input type="radio" token="token_span" depends="$depends_token_1$">
      <label>Choisir échelle</label>
      <choice value="15m">15 minuttes</choice>
      <choice value="30m">30 minuttes</choice>
      <choice value="1h">1 heure</choice>
      <choice value="1d">Toute la journée</choice>
      <default>1d</default>
    </input>

So to load the query

      <query>
          | stats count(eval((MESSAGE="Click open chat"))) AS Nombre_de_Click_Open_Tchat

                 </query>
    </search>

This method is already done by someone and i can't change it.
Now i want to add other candition (when the label is "Hier" and the span token is "15 minuttes" ,i execute my query.
To do this i already try this method but it's doesn't work

<condition match="label_token=Hier AND token_span=30 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_Hier</set>
            </condition>

And to load the query

 <query>
                | loadjob savedsearch="a468413:ied:$loadjob_token_analyse_fine$"
                | search $chatOrigin_token$ $media_token$

                     </query>

I hope that someone can help me ,thank you

Tags (1)
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 ...