Dashboards & Visualizations

Populate Dashboard name from a token value of a drop down

nagar57
Communicator

I have a dropdown which have team names. Now I want to populate the Dashboard name with the selected team names from the dropdown. I have already tried putting token name of the dropdown in Dashboard name but it was not working.
Is it possible to do so?

0 Karma

niketn
Legend

@nagar57 refer to this workaround which may be used to

1) Hide Title in your dashboard provided by Splunk
2) Create first row with html panel containing your dashboard title
3) Use token in the html panel

https://answers.splunk.com/answers/712013/how-do-you-display-the-date-in-a-dashboard-title.html

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

nareshinsvu
Builder

If I am not wrong, Dashboard name comes first and then you select your dropdown values. right? Based on the selected dropdown value, it's not easy to change the dashboard name.

Rather, you can assign that select value to a token (say selected_dropdown) and use it in the underlying table/panel title. Something like this?

 <row>
    <panel>
      <title>Dropdown value is $selected_dropdown$ </title>
0 Karma

nagar57
Communicator

Thanks for looking into this. But this is not what I wanted.
Just like we can populate the panel title with a token value I want to populate the Dashboard name i.e. <label>$token_value My Dashboard</label> Something like this.

0 Karma

nareshinsvu
Builder

Did you check this post of @niketnilay . if it helps, upvote his original post buddy 🙂

https://answers.splunk.com/answers/712013/how-do-you-display-the-date-in-a-dashboard-title.html

nagar57
Communicator

I tried this but while hiding the default label I am not able to see Edit and Export options.

0 Karma

nareshinsvu
Builder

Because that is part of the title. You can anyways edit the source/panels under Dashboards -> Actions (of your dashboard) -> Edit

Did your dashboard name populated from a token value? - which is your actual requirement

0 Karma

nagar57
Communicator
0 Karma

niketn
Legend

@nagar57 please add more details to your issue for the community to assist you better. What is the source of data for Team name, Dashboard Name? and what is the correlation? Can you add some data for the two?

Also what is the SPL you have tried? What do you mean by not working? Are you getting no data or error?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

nagar57
Communicator

@niketnilay Just like we can populate the panel title with a token value I want to populate the Dashboard name i.e. <label>$token_value My Dashboard</label> Something like this.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...