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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...