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!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...