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 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...