Dashboards & Visualizations

How to sync input field values using a token to all the dashboard panels?

Hemnaath
Motivator

Hi, We have a created a dashboard with multiple panels and one input text tokens, another with Time Picker. But it is not working as expected. Below are the two input fields used as the input to the search string defined in all the dashboard panels.

Dashboard Input Fields
- Username:
- Time Picker:

Exact Requirement:
When user feeds the value into text input fields “username” and selects the Time picker drop down menu, all the dashboard should sync and populate the information based on the user inputs and for the selected duration.

Problem Details:
Currently only the username input token is synchronizing with all the dashboards, but when the user trying to select the Time Picker it’s not synchronized. Instead it populate only the default 24 hours information.

Example:

SPL: 
| inputlookup TES-CND-CTX-IDENTITY-AD.csv | search identity ="$F$" , $T$ |  stats count by first| table first

Query Details:

The above lookup table contains the filed called identity where all the user ID is reflected, so we have created a token called “F” and applied in the search and we are able to fetch the user name details. Similarly when the user is trying to select the Time from the time picker for the particular user input, it is not working, we are getting the default value result for 24 hours. Though we have defined the token as $T$ and search on change option is checked.

Kindly guide me how to fix this issue.

0 Karma
1 Solution

xpac
SplunkTrust
SplunkTrust

Hey,

a shared timepicker is possible, but a little different to implement.
Take a look at this document: Create dashboards and panels
Search for "shared timepicker", you'll find a tutorial on how to add a shared timepicker and connect it to your panels.

Hope that helps - if it does I'd be happy if you would upvote/accept this answer, so others could profit from it. 🙂

View solution in original post

0 Karma

xpac
SplunkTrust
SplunkTrust

Hey,

a shared timepicker is possible, but a little different to implement.
Take a look at this document: Create dashboards and panels
Search for "shared timepicker", you'll find a tutorial on how to add a shared timepicker and connect it to your panels.

Hope that helps - if it does I'd be happy if you would upvote/accept this answer, so others could profit from it. 🙂

0 Karma

Hemnaath
Motivator

Thanks xpac, it worked, i found the mistake in the query. I had included the token $T$ in the query and due to which splunk had an issue in synchronizing data and included the shared timepicker option in all the dashboard search string.

Old query.
| inputlookup TES-CND-CTX-IDENTITY-AD.csv | search identity ="$F$" , $T$ |  stats count by first| table first 

Corrected Query: 

| inputlookup TES-CND-CTX-IDENTITY-AD.csv | search identity ="$F$"  |  stats count by first| table first

and included the Shared timepicker option. After this correction, we could see the data are synchronizing as per the user inputs.

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