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!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...