Splunk Search

Insert Timerange picker value in query

noman377
Explorer

Hi, I want to insert Timerange picker value like $time$ in my query for a Dynamic input. Requesting help with the query where the $time$ will get injected and will not utilize the GUI Timerange Picker in the Dynamic input widget. 
Date Range Picker Value in query.png

Labels (1)
0 Karma
1 Solution

vhharanpositka
Path Finder

Hi Noman

I think this will be helpful to you.

To get the Timeange picker value in another filter query, you can use the $field1.earliest$ and $field1.latest$ values from the time range picker.

TimeRange picker

vhharanpositka_0-1635433191901.png

Test Dropdown:

vhharanpositka_1-1635433290199.png

 

I tried this and it is working.. 

 

View solution in original post

0 Karma

vhharanpositka
Path Finder

Hi Noman

I think this will be helpful to you.

To get the Timeange picker value in another filter query, you can use the $field1.earliest$ and $field1.latest$ values from the time range picker.

TimeRange picker

vhharanpositka_0-1635433191901.png

Test Dropdown:

vhharanpositka_1-1635433290199.png

 

I tried this and it is working.. 

 

0 Karma

noman377
Explorer

This worked 100%. Thank you so much!!!!

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