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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...