Dashboards & Visualizations

Is there a way to set up a dynamic dashboard refresh time based on the role logged in?

ronak
Path Finder

Setup

  • multi-tenant setup accessing the same application dashboards
  • Splunk V 6.2
  • One business dashboards showing various KPIs with a dashboard refresh time setting to be 300 seconds e.g. form refresh=300 is what is set when one does "Edit Source on dashboard and the views the XML

Need

Based on the ROLE associated with login, set the dashboard refresh time to 5 minutes or 7 minutes or 15 minutes etc. meaning

IF role=role1 then form refresh=300
elsif role=role2 then form refresh=420
else form refresh=900
end if;

How do I achieve the above functionality?

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

I don't think you can do that in SimpleXML, but I am not sure.
If you are on V6.x, you can convert your dashboard to HTML and probably implement this in JavaScript. You can create a hidden panel which runs
| rest /services/authentication/current-context/context | fields username roles
to get the current user name and the roles that user is part of (can be multiple) and then set the refresh property.

Note: I have not tested whether dynamically setting the refresh property will actually work, or whether the value is only read once when the dashboard loads.
Easy enough to try.

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...