Dashboards & Visualizations

How do you use a custom field as a token for a drilldown?

fshimaya
Engager

I have a dashboard that contains a line chart. The query for this is something like:

search ....... | rex field=_raw " (ERROR|E|SEVERE) (?<method>[a-zA-Z0-9\. \-]*)[:\. ]" | timechart count by method limit=10 usenull=f useother=f

The custom field is "method". I would like a drill-down configured so that when the user clicks on either the data point on the chart or the label name, it will take the method value and add it to the query of the "Search" dashboard. So something as simple as:

search $method$

I have tried using $method$ but it literally adds "$method$" to the query. The reason I don't want to use "Auto" feature of the drilldown is that I don't want all the search arguments from the original query added to the drilldown (it's rather long and complicated). I just want the drilldown to have a simple query.

1 Solution

somesoni2
Revered Legend

After you timechart query, there is no field named "method" (instead you'll get a column for each value of field method). Try using $click.name2$ to capture name of the columns which is basically value of the field method.

http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/PanelreferenceforSimplifiedXML#Drilldown_event...

View solution in original post

somesoni2
Revered Legend

After you timechart query, there is no field named "method" (instead you'll get a column for each value of field method). Try using $click.name2$ to capture name of the columns which is basically value of the field method.

http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/PanelreferenceforSimplifiedXML#Drilldown_event...

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 ...