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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...