Alerting

Why _time field on email alerts has "DDD MMM 24hh:mm:ss YYYY" when send in as Table

deanfidel
Engager

Sending Email as an action for an Alert and includes the result as table.

deanfidel_0-1707489896262.png


_time field is one of the columns for this table and is showing this type of format "DDD MMM 24hh:mm:ss YYYY".

deanfidel_1-1707489989649.png

Opening the Alert in Search shows a different format. "YYYY-MM-DD 24hh:mm:ss.sss"

deanfidel_2-1707490040418.png

Is there a way to format _time field in the email's inline table?

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Use the strftime() function

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Use the strftime() function

deanfidel
Engager

Thanks! strftime() function worked for the purpose.

deanfidel_0-1707503136199.png

Here's the Search.

 

[search criteria]
| eval mytime=strftime(_time,"%Y-%m-%d %H:%M:%S.%Q")
| table _time, _raw, mytime

 

 

0 Karma
Get Updates on the Splunk Community!

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...

Splunk and TLS: It doesn't have to be too hard

Overview Creating a TLS cert for Splunk usage is pretty much standard openssl.  To make life better, use an ...

Faster Insights with AI, Streamlined Cloud-Native Operations, and More New Lantern ...

Splunk Lantern is a Splunk customer success center that provides practical guidance from Splunk experts on key ...