Dashboards & Visualizations

How to Inputs values (tokens) as parameters in Dashboard URL?

franjrobles
Engager

Dear All,

I'm taking the freedom, to write here, just, to see, if, maybe, it would be possible, to get, some, of your support

(it would be, regarding, query parameters, in a dashboard URL)

So, just, to describe, the scenario:

We are creating, a dashboard, using Splunk Enterprise Dashboard Studio (version 8.2.5)

In that dashboard, we have placed, some inputs (3 normal dropdowns, 3 multiselect)

Now, as, you may, probably, imagine, for each input, we have, an associated token (token1, token2, etc.)

(so far, I guess, it's clear 🙏🏼)

Now, as you may, probably, know, when we use, a Classic dashboard (and, when we access, a specific one), we, in the dashboard URL, can, see, the inputs names (and their values)

(just, to provide, with a basic example):

https://server:8000/en-US/app/app_name/dashboard_name?form.input1=val1&form.input2=val2

(so, as we can see, with a Classic dashboard, this, all, is, good)

Now, in our case, we are using, Dashboard Studio

(as, you may, probably know, here, the URL, gets displayed, slightly different)

In our example:

https://server:8000/en-US/app/app_name/dashboard_name

Now, our client, asks, if, when accessing this dashboard, it would, be possible, to see, the inputs (and their values), in the URL (just, as we do, in Classic dashboards)

(as per my research, I haven't been able, to find, this possibility)

To sum up:

Kindly wondering, if, maybe, some of you, would be, kind enough, to provide, with some guidance 🙏🏼

Thanks a lot!

Sincerely,
Francisco

Labels (2)
0 Karma

franjrobles
Engager

Dear @tshah-splunk ,

Thank you, very much, for your answer! 

I'm coming back, to this topic, cause, after presenting, your idea, to the customer (I mean, we, definitely, appreciate, your time, and support! 🙏

So, yes, thank you, very much, for that!)

Now, our customer, would like (I mean, don't know, if, maybe, this, is, possible 🙏)

Anyway, they would like, that, when, the user, changes, the value, of (let us say) input1, from, (let's say) valueA, to, valueB; then, the parameter, in the URL, would, also, get, updated

(to sum up)

The URL, would change, from

https://server:8000/en-US/app/app_name/dashboard_name?form.input1=valueA&form.input2=val2

to

https://server:8000/en-US/app/app_name/dashboard_name?form.input1=valueB&form.input2=val2


Don't know, if, maybe, this, is, something, that, we, could, possibly, achieve 🙏


Thanks a lot!


Sincerely,
Francisco

 

0 Karma

tshah-splunk
Splunk Employee
Splunk Employee

Yes @franjrobles,

That is exactly how the URL will change if a user changes the value from the selected input. If URL is the only thing that you want, then the way you have mentioned in the above post is the way to move forward with.

---
If you find the answer helpful, an upvote/karma is appreciated
0 Karma

tshah-splunk
Splunk Employee
Splunk Employee

Hey @franjrobles,

I couldn't find any documentation supporting this. But, I have one server with me and have created a sample dashboard using the Dashboard Studio. I verified that inputs can be set in the URL and the same dashboard loads with the input value passed in the URL.

---
If you find the answer helpful, an upvote/karma is appreciated
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...