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!

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...

Index This | What’s a riddle wrapped in an enigma?

September 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...