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!

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

Unlock Instant Security Insights from Amazon S3 with Splunk Cloud — Try Federated ...

Availability: Must be on Splunk Cloud Platform version 10.1.2507.x to view the free trial banner. If you are ...