Splunk Search

Can I specify earliest time including subseconds?

mslvrstn
Communicator

Is it possible to specify earliest= at subsecond granularity?

Thanks for your help.

Tags (1)
0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

Yes.

[splunk@MrT ~]$ splunk/bin/splunk search 'index=_internal earliest=1299878273 latest=1299878274 | stats count'
INFO: Your timerange was substituted based on your search string
count
-----
   46

[splunk@MrT ~]$ splunk/bin/splunk search 'index=_internal earliest=1299878273.651 latest=1299878274 | stats count'
INFO: Your timerange was substituted based on your search string
count
-----
    4

View solution in original post

Stephen_Sorkin
Splunk Employee
Splunk Employee

Yes.

[splunk@MrT ~]$ splunk/bin/splunk search 'index=_internal earliest=1299878273 latest=1299878274 | stats count'
INFO: Your timerange was substituted based on your search string
count
-----
   46

[splunk@MrT ~]$ splunk/bin/splunk search 'index=_internal earliest=1299878273.651 latest=1299878274 | stats count'
INFO: Your timerange was substituted based on your search string
count
-----
    4

mslvrstn
Communicator

Awesome! Thanks!

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...