Splunk Search

How to customize a drilldown so users can only click on the field name in a table, not the sparkline or percentage?

dbcase
Motivator

Hi,

I have a table with 3 fields in it

MSO (a name field)
Trend (a Sparkline)
Percentage (numeric)

When a user clicks on the MSO field, the drilldown and resulting line chart works great!

But when a user clicks on Trend or Percentage, the drilldown "works" (meaning it creates a panel), but the resulting line chart errors out as the query is trying to search on a trendline or a percentage instead of the MSO field. Is there anyway to limit the user so they can only click on the MSO field? Or..... If they click on any other field in the row, convert the token to the MSO name?

0 Karma
1 Solution

sundareshr
Legend

You can do a conditional token. Try this

<drilldown>
<condition field="trend">
 <unset token="tablevalue"></unset>
</condition>
<condition field="percent">
 <unset token="tablevalue"></unset>
</condition>
<condition field="*">
 <set token="tablevalue">$click.value2$</set>
</condition>
</drilldown>

View solution in original post

0 Karma

sundareshr
Legend

You can do a conditional token. Try this

<drilldown>
<condition field="trend">
 <unset token="tablevalue"></unset>
</condition>
<condition field="percent">
 <unset token="tablevalue"></unset>
</condition>
<condition field="*">
 <set token="tablevalue">$click.value2$</set>
</condition>
</drilldown>
0 Karma

dbcase
Motivator

Now that is very slick!!! Worked like a charm!!!! Thanks Sundareshr!!!

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...