Dashboards & Visualizations

Pass 2 columns to 1 token or 2 tokens?

georgerobert
Observer

What I'd like to be able to do is when the user clicks on iPhone (there are 2 of them which is what presents the problem) I'd like to also include the OS in the search as to be able to uniquely identify which iPhone.

I know how to configure a token to grab "iPhone" but what I don't know is how to grab the OS value at the same time. Also, is it best to put all the info in 1 token or 2 tokens? Or am I going about this completely wrong?

Labels (1)
0 Karma

renjith_nair
Legend

@georgerobert,

Assuming that you have some visualization and a drilldown action.

Based on the visualization there would be slight changes but you could use two tokens to have more control on the data.

Please find below an anywhere run example. Have a look and let's know if this is what you are looking for

<dashboard>
  <label>Phones</label>
  <row>
    <panel>
      <table>
        <search>
          <query>|makeresults|eval model="iPhone Samsung Nokia"|makemv model|mvexpand model
|appendcols [|makeresults |eval os="iOS Android Symbian"|makemv os|mvexpand os]</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <set token="model">$row.model$</set>
          <set token="os">$row.os$</set>
        </drilldown>
      </table>
    </panel>
  </row>
  <row>
    <panel>
      <html>
        <h2>Selected Mode is $model$ and OS is $os$</h2>
      </html>
    </panel>
  </row>
</dashboard>
---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...