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

soutamo
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