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
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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...