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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...