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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

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 Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...