Dashboards & Visualizations

How to create a drop-down where we can select the time in hours and days?

vrmandadi
Builder

alt text

How can I add a drop-down box where we can select hours, day. Can anybody please help?

Tags (2)
0 Karma

somesoni2
Revered Legend

You can create custom dropdown to have just the dates (you can fix some range like like up to last 1 year) for the range and custom fixed Hour dropdown. The complexity will come on how these dropdown values will be used, and that depends upon your queries. Can you post what type of queries you're going to use?

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

Hi @vrmandadi,
I'm a tech writer here at Splunk and I'd like to help. Have you tried using a dropdown input for this panel? Here are some documentation resources for inputs and time specification:

http://docs.splunk.com/Documentation/Splunk/6.2.5/Viz/PanelreferenceforSimplifiedXML#input_.28dropdo...
http://docs.splunk.com/Documentation/Splunk/6.2.5/Viz/Buildandeditforms#Form_with_time_inputs_exampl...

This previous Answers post also seems to cover something similar to what you're trying to do:

http://answers.splunk.com/answers/42529/dynamic-dropdown-timeframe.html

I hope these help! Please let me know if not and we can continue discussing.

All the best,
@frobinson_splunk

0 Karma

jensonthottian
Contributor

Do you the dropdown list to show the Hours and Day available from your base search or this can be random.

0 Karma

vrmandadi
Builder

it should be random

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 ...