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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...