Dashboards & Visualizations

Is it possible to put the drilldown click.value into the panel's title?

jravida
Communicator

Hi folks,

I have a panel that uses the depends="$host_token$" to pass the value of the host clicked on in the panel to a new stats table panel's query. I want the hosts value to appear in the panel's title when it pops up. Is it possible?

1 Solution

stephanefotso
Motivator

In your panel just do somethink like this:

  <table>
    <title>my title with $host_tok$ </title>
    <search>
        <query>this is my query AND host=$host_tok$ | stats list(foo) by bar</query>

  </table>
SGF

View solution in original post

stephanefotso
Motivator

In your panel just do somethink like this:

  <table>
    <title>my title with $host_tok$ </title>
    <search>
        <query>this is my query AND host=$host_tok$ | stats list(foo) by bar</query>

  </table>
SGF

jravida
Communicator

Must've been thinking too hard. I tried to do it in the gui originally and it just put $host_tok$ everytime. Thanks a million!

0 Karma

stephanefotso
Motivator

Lets see your sample code please

SGF
0 Karma

jravida
Communicator

It's on my dev so I can't copy and paste it but there isn't a lot to it:
First panel sets token:

<set token"host_tok">$click.value$</set>

And passes it to the next query:

    <query>this is my query AND host=$host_tok$ | stats list(foo) by bar</query>

So I want that $host_tok$ value to show in the panel's title.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...