Splunk Search

Time Range "earliest" in SPL not working?

thahir
Path Finder

When conducting searches, we have observed that the SPL searches were not working based on the "earliest" time range in the SPL search itself.
It only worked when we choose the configured presents.

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

What you describe sounds the reverse of what should be happening.  Please provide more information, especially the SPL you're using.

---
If this reply helps you, Karma would be appreciated.
0 Karma

thahir
Path Finder

if i am seraching the index with earliest=-7d and searching with the time stamp for last 24 hours it should give the result for last 7 days but am getting the result for last 24 hours.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That is the way it is supposed to work, but we can't debug this problem without seeing your code.  Make sure the "earliest" keyword is before the first pipe (|).

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...