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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...