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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...