Splunk Search

how to create new search term earliest and latest spesific time

byapici
New Member

Hello,

I was created new search term, but it not worked,

my example; sourcetype=xxxxx earliest=01/01/2017 12:00:00:000 latest=01/09/2017 12:00:00:000

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi byapici
if you want to use a date in earliest and latest, put them into double quotes and use the following format: mm/dd/yyyy:HH:MM:SS
Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi byapici
if you want to use a date in earliest and latest, put them into double quotes and use the following format: mm/dd/yyyy:HH:MM:SS
Bye.
Giuseppe

0 Karma

byapici
New Member

I was created new term sourcetype=xxxxx earliest="01/01/2017:12:00:00" latest="01/08/2017:12:00:00"

thakx 🙂

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

It's easiest to use the time range picker to the right of the search bar, it has an entire section for specifying date and time for earliest and latest using calendar widgets and all that fancy stuff.
https://docs.splunk.com/Documentation/Splunk/6.6.2/Search/Selecttimerangestoapply#Define_custom_Date...

As for your inline approach, you're missing the colon between date and time.
https://docs.splunk.com/Documentation/Splunk/6.6.2/Search/Specifytimemodifiersinyoursearch

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...