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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...