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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...