Dashboards & Visualizations

Limit dates available in custom date range picker?

cesaccenturefed
Path Finder

We have a set of dashboards for a client and we limited the time range picker to only offer date range as an option. is there a way to limit to only specific dates within the last 3 months to be the only dates they can enter into the text boxes. We don't want them to search beyond the last 3 months, but they should be able to look at the metrics for any specific day or range within those 3 days.

0 Karma

gjanders
SplunkTrust
SplunkTrust

Would the dashboard time selection presentation (recording here), slides here match this?
I suspect you could provide custom options as per the above and that might be a nice option here.

I checked the authorize.conf and you can prevent the time window from becoming too large for a role, but this wouldn't stop someone from changing the latest time to say 1 month ago and looking back 3 months from there.
If you cannot allow them to search beyond 3 months perhaps you could use summary indexing to provide only the data they should see?

Is the goal here to only offer certain options on the dashboard or to actually restrict the access to a particular period of time?

0 Karma

somesoni2
Revered Legend

Are you using Splunk's time range picker OR a free-text textbox?

0 Karma

NeerajDhapola7
Path Finder

Try Time Range from "Setting >> User interface >> Time ranges >> Add new "

0 Karma

micahkemp
Champion

Note: this will only limit the options shown. It won't limit the actual searches they can run. The user could override the timepicker values by setting earliest/latest in the search string.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...