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!

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Starting With Observability: OpenTelemetry Best Practices

Tech Talk Starting With Observability: OpenTelemetry Best Practices Tuesday, October 17, 2023   |  11AM PST / ...

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW! Every day the list of sources Admins are responsible for gets bigger and bigger, often making ...