Splunk Enterprise Security

How to use earliest and latest in my inputlookup search to filter results?

tsidie
Engager

Hello Splunk Answers!

I'm relatively new to Splunk - pardon if this is a very basic question. I've looked through previous answers without luck.

I'm trying to query Splunk Enterprise Security notable events by using inputlookup es_notable_events, and also trying to slim down results with an earliest and latest filter:

| inputlookup es_notable_events | earliest=-1h latest=now

However, this doesn't do the trick. How can I use inputlookup with earliest and latest?

Thank you for looking and any help you might be able to offer!

0 Karma

jkat54
SplunkTrust
SplunkTrust

See if this answer helps:

https://answers.splunk.com/answers/100326/time-range-options-in-correlation-search.html

It's a fairly common request amoung splunk ES users

"site:answers.splunk.com splunk enterprise security inputlookup earliest latest" <- on google might help find some more solutions.

tsidie
Engager

Thanks very kindly, jkat54! To clarify, I'm running this query against the REST API.

It seems that I may have to abandon using earliest and latest in the query, from that link and some of the others I saw. I was hoping this wasn't the case - users directly enter values such as "-1h" in our interface, but we can convert those to seconds.

I'll give it a shot and see if it'll work - I'll hold off on accepting to give others a chance for a little bit. Thanks!

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...