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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

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, ...