Dashboards & Visualizations

Option to remember user initial selection in filters

HHMM
New Member

Is there any way to remember user's initial selection in the filters(multiselect,dropdown) , so that the filter values are retained when they visit the splunk dashboard next time.

Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi @HHMM,

You have to store "state of filters" previously selected by a user in KV store AND load filters with default values which are already stored.

Steps:

  1. Create KVStore lookup with required fields.
  2. Create a search which is executed when any filters change on the dashbaord. This search will store filter value in lookup.(Logged in User wise)
  3. Create a search which is executed on load of dashboard. This search will get all filter value from KVStore lookup and set them into token.
  4. Use tokens as default value in all respective filters. So when user visit again the same dashboard then dashboard have previously selected filters.

Let me know for further assistance.

Thanks
Kamlesh

0 Karma

HHMM
New Member

Thanks for your inputs. i will work on this approach and let you know the results.

0 Karma

mayurr98
Super Champion

You can set the user initial as default so whenever a user sees a dashboard. In order to make it retain you need to make it as a default values.

0 Karma

HHMM
New Member

I can set the values as default only if i know about the user's selection.. how would i get the user's selection?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...