Splunk Search

Splunk search earliest and latest in Splunk search

jaibalaraman
Path Finder

Splunk search 

" EventCode="4688" AND earliest="5/8/2024:10:07:20" latest="5/8/2024:10:17:20 " 

Could you please the time search is correct 

Tags (1)
0 Karma

thahir
Communicator

@jaibalaraman , your searches return a consistent set of results regardless of the time zone you are in.

0 Karma

thahir
Communicator

@jaibalaraman search can be in any time zone. can you elaborate your question what you need exactly

0 Karma

jaibalaraman
Path Finder

Hi 

I am trying to use earliest and latest on Date time 

Could you please advise the right format to use , i am not sure the below spl format is correct

Event Code="1234" AND earliest="5/8/2024:10:07:20" latest="5/8/2024:10:17:20

0 Karma

thahir
Communicator

hi @jaibalaraman , 

 

You can specify an exact time such as earliest="10/5/2021:20:00:00", or a relative time such as earliest=-h or latest=@w6.

When specifying relative time, you can use the now modifier to refer to the current time.

Tags (1)
0 Karma

apietsch
Splunk Employee
Splunk Employee

According to the documentation for search time modifiers you should be correct. Although example 4 and 5 on that page uses a different time format. Try the format from the examples.

---------------------
Chaos Smoother | Data Wrangler
0 Karma

jaibalaraman
Path Finder

Also the search can be done in  UTC or any time zone'

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...