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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...