Dashboards & Visualizations

Custom Drill Down - (Condition)

lucasbarbosa
Explorer

Hi, I would like to add a drilldown in just one result, for example:

Column |
Result A |
Result B |
Result C |

I wanted to activate drilldown only when I click on results that are equal to B.
I already have this:

<drilldown target="_blank">

          <link>
            <![CDATA[
                   /app/search/drilldown__consumo_por_produto
                ]]>
          </link>

        </drilldown>

But the part of the condition is still missing.

I already tried the <condition>, but I did not succeed.

I do not know if I used it the wrong way.

Thank you!

Labels (1)
0 Karma
1 Solution

sumedha1
New Member
      <condition match="substr('click.value2',1,3) == &quot;CTA&quot;"> (I Need first 3 Char from token)
      <set token="selected_sourcetype">$click.value2$</set><link target="_blank">https://Google.com/nav_to.do?uri=%2Fchange_task_list.do%3Fsysparm_first_row%3D1%26sysparm_query%3DGOTOnumber%253d$click.value2$%26sysparm_query_encoded%3DGOTOnumber%253dC$click.value2$%26sysparm_view%3D </link>
       </condition>
       <condition match="substr('click.value2',1,3) == &quot;SCT&quot;">   (I Need first 3 Char from token)
      <set token="selected_sourcetype">$click.value2$</set><link target="_blank">https://Google.com/nav_to.do?uri=%2Fsc_task_list.do%3Fsysparm_first_row%3D1%26sysparm_query%3DGOTOnumber%253d$click.value2$%26sysparm_query_encoded%3DGOTOnumber%253d$click.value2$%26sysparm_view%3D </link>
       </condition>
     </drilldown> 
0 Karma

lucasbarbosa
Explorer

Still did not work, Did I do something wrong?

<drilldown target="_blank">

          <condition match="$click.value2$ == DIVERSOS">

          <link>
            <![CDATA[
                   /app/search/drilldown__consumo_por_produto?teste=$click.value2$
                ]]>
          </link>

          </condition>

        </drilldown>
0 Karma

ehudb
Contributor

Try this approach for match syntax:

https://answers.splunk.com/answers/400053/condition-match-and-set-token-in-drilldown-not-wor-1.html

'click.value2' == &quot;DIVERSOS&quot;
0 Karma

lucasbarbosa
Explorer

Thank You!!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...