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
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...