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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...