Splunk Search

TimePicker: Limit the choices on a specifique Dashboard

jlhamlet
Path Finder

Hi,

I have two dashboard:
- "Normal" dashboard: With the basic TimePicker.
- Fixed Time report: Here i want the user to be able to select just a few values ( Last 24hours, Last Week, Last Month)

How can i get to limit the choices of the Time Picker on the "Fixed Time Report" ?

Here is the code that works for the "Normal" dashboard :

****
.... ....

Just by using the input type=time, it adds the basic Time Range from Splunk with its default values (Preset, Relative, Real-Time, ...)

Note: I am using Splunk 6

Thank you for your help.

0 Karma
1 Solution

jlhamlet
Path Finder

Hello,

I solved my problem differently. This may help some of you:



-1w
<!-- Define the default value -->
Past Day
Past Week

And under my searches on the dashboard:
$timerange$
now

Thank you.

Happy Splunking!

View solution in original post

jlhamlet
Path Finder

Hello,

I solved my problem differently. This may help some of you:



-1w
<!-- Define the default value -->
Past Day
Past Week

And under my searches on the dashboard:
$timerange$
now

Thank you.

Happy Splunking!

jlhamlet
Path Finder

Thank you for your answer.

On the other side, i cant get it to work with my code. Do i have to replace my input type=time ?

Thank you,

0 Karma

aelliott
Motivator

Correct, you cannot have input type=time..

0 Karma

aelliott
Motivator
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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