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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...