Splunk Search

How to write a regular expression to list out events with a date in the format dd-mm-yyyy?

pavanae
Builder

How do I write the regex to list out the events with dd-mm-yyyy ?

where
dd-days
mm-month
yyyy-year

all are digits.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started.

index=foo | regex "\d\d-\d\d-\d{4}" | ...
---
If this reply helps you, Karma would be appreciated.

View solution in original post

jkat54
SplunkTrust
SplunkTrust

\d\d-\d\d-\d\d\d\d

But I take it you want to then convert this to a timestamp or index this with correct timestamps.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started.

index=foo | regex "\d\d-\d\d-\d{4}" | ...
---
If this reply helps you, Karma would be appreciated.

sundareshr
Legend

Can you share some events?

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...