Splunk Search

Why does search with subsearch fail if earliest and latest is used?

FritzWittwer
Path Finder

The following search does not produce any results:

index=* earliest="04/19/2022:15:00:00" latest="04/19/2022:17:00:00"
| fields _time, index, sourcetype | head 1
| eval mail=[| makeresults | eval mail="\"abc@cde.com\"" | return $mail]


The search and the sub search produce each one result.
The search returns one result as expected when the  the earliest and latest option in the base search are omitted.

Labels (1)
Tags (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

That's strange - I ran a similar search on Splunk 8.0.1 and it gives me the correct search range, but on 8.2.1 I get this

bowesmana_0-1650524815014.png

What version of Splunk do you have?

 

0 Karma

FritzWittwer
Path Finder

I am on 8.2.3 and the time range fits:

FritzWittwer1_0-1650531822039.png

 

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

Your search is valid. Are you sure that you have events on this time slot?

r. Ismo

0 Karma

FritzWittwer
Path Finder

Yes, the first search alone produces exactly one result as stated in the question. In case it is executed on a less busy instance the time range must be expanded by changing earliest and/or latests.

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Can you find anything interesting from search.log via Job Inspector?
0 Karma

FritzWittwer
Path Finder

No, just one error message in the 1700 lines which also spears if the earliest and latest are deleted and the search runs as expected.


0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...