Splunk Search

Earliest not working in queries, though does work in time picker.

Abraham1234
Loves-to-Learn Lots

Hey, I am using splunk 6.x and on another system splunk 8.x with similar data backends. 

 

when I do a search for:

index=myIndex earliest=-30  |head 10

it works on 6.x but not 8.x

 

though when i use the time picker

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

please add an unit to earliest like s / m / h, like earliest=-30s. 
r. Ismo

0 Karma

Abraham1234
Loves-to-Learn Lots

k, sorry about that - the date unit was specified in the original query. I have retested and behavior hasn't changed. 

index=myindex earliest=-30d |head 10 

will not bring back results, though choosing the same time frame from the picker does bring back results.  My gut says this is because we are using custom date formats to access our hadoop file system, though i don't have enough equipment to test this completely. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...