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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...