Splunk Search

Date getting null values on StrpTime?

iupreti
Explorer

Screenshot 2022-12-05 at 6.45.50 AM.png
I've field name opened_at with the date value shown in the image. But, while taking value from it, it returns a null value. Am I missing something here?

Labels (2)
0 Karma
1 Solution

yuanliu
SplunkTrust
SplunkTrust

The date format appears to be "%d/%m/%Y", not "%m/%d/%Y".

View solution in original post

yuanliu
SplunkTrust
SplunkTrust

The date format appears to be "%d/%m/%Y", not "%m/%d/%Y".

iupreti
Explorer

Screenshot 2022-12-05 at 7.47.40 AM.png
Tried that as well but no luck

0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @iupreti

you need to remove quotes for opened_at inside strptime function.

can you try runing removing quotes,

It should work

iupreti
Explorer

@SanjayReddyThank you it worked.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...