All Apps and Add-ons

Get element from index with specific date format

wawanopoulos
New Member

Hi,

My index contain a column "deliveryDate" with the following format : 2015-10-08
I would build a search to get all data from my index where deliveryDate > dateNow.

I cannot user earliest and latest keyword i think because it is not the same format of date.

Could you help me please ?

0 Karma

woodcock
Esteemed Legend

Like this:

... | eval deliveryDateEpoch=strptime(deliveryDate, "%Y-%m-%d") | where  deliveryDateEpoch>now()
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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