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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...