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