Splunk Search

Want to understand below condition in Query

nilbak1
Communicator

Can anyone help me to understand below condition

where _time>=if("$field1.earliest$"=="0",1,relative_time(now(),"$field1.earliest$")) AND _time<=case("$field1.latest$"=="",relative_time(now(),"-1m"),"$field1.latest$"=="now",now(),true(),relative_time(now(),"$field1.latest$"))

field1 is the time token here

Tags (1)
0 Karma

woodcock
Esteemed Legend

I assume that your events are coming in from something other than a normal search (e.g. dbxquery or inputlookup) and you need to do the time filtering yourself. It is just doing the normal Time Picker time/date filtering.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...