Dashboards & Visualizations

How to pass multiple values from table to drilldown search?

manderson7
Contributor

This may have been asked before, but if so, it doesn't look like what I'm looking for. If so, please point me to it.
I have a dash w/ 1 table and a search result panel below it. I'd like to take click 1 field in the table, and the search results in the panel below use 2 values in the row I clicked in.
So the table will have _time, host, accountname, name, operation, object
and I want the search to show results for host and object.
Currently, I can send the host field to the search using:

<drilldown>
          <set token="form.hostpicker">form.hostpicker=$row.host$</set>
        </drilldown>

and

<query>index=splunk_server host=$form.hostpicker$ sourcetype=authorize_conf
|  table host sourcetype _raw</query>  

But I can't send both host and object to the search. I've tried

<drilldown>
          <set token="form.hostpicker">form.hostpicker=$row.host$&amp;form.objectpicker=$row.object$</set>
        </drilldown>

And

 <query>index=splunk_server host=$form.hostpicker$ object=$form.objectpicker$ sourcetype=authorize_conf
 |  table host sourcetype _raw</query>

But that doesn't work. Can someone help me out please?

0 Karma
1 Solution

harshpatel
Contributor

You are not setting object token at all (If I'm mistaken please explain what your drilldown does). Please try following if you want to also set object token:

<drilldown>
        <set token="form.hostpicker">$row.host$</set>
        <set token="form.objectpicker">$row.object$</set>
</drilldown>

Hope this helps.

View solution in original post

harshpatel
Contributor

You are not setting object token at all (If I'm mistaken please explain what your drilldown does). Please try following if you want to also set object token:

<drilldown>
        <set token="form.hostpicker">$row.host$</set>
        <set token="form.objectpicker">$row.object$</set>
</drilldown>

Hope this helps.

manderson7
Contributor

That's most of the issue, thank you.
I need to change the value of the object now, and add an "role" and an "" in between each word in object. I'll look that up, but I think you resolved the big issue.

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

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...