Splunk Search

Instruct splunk search to search from oldest event first instead of newest?

justinjohn83
Explorer

If I run "search latest=1/5/2011:0:0:0 | head limit=1" the results are returned immediately. But if I run "search earliest=1/5/2011:0:0:0 | reverse | head limit=1" or "search earliest=1/5/2011:0:0:0 | tail limit=1" or "search earliest=1/5/2011:0:0:0 | sort + _time | head limit=1" the results take forever because it is still executing the search by first looking at the new events first. Is there a way to instruct splunk to begin searching from a specific time forward instead of backwards from the current time?

Thanks,

Justin

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

There is not. It is probably worth filing an Enhancement Request with Splunk, as it's not the first time I'm sure. When you file, be sure to describe your use case.

View solution in original post

0 Karma

I-Man
Communicator

I hope you filed an enhancement request because that function would be very convenient.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

There is not. It is probably worth filing an Enhancement Request with Splunk, as it's not the first time I'm sure. When you file, be sure to describe your use case.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...