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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...