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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...