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!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...