Splunk Search

help on epoch time format number

jip31
Motivator

hi

I would like to transform the epoch time number below in a standard format date

1546284113.000000

could you please help me?

Tags (1)
0 Karma
1 Solution

sdchakraborty
Contributor

Hi,

Is this what you looking for?

|  makeresults 
| eval date = 1546284113.000000
| eval formatted_date = strftime(date,"%d-%m-%Y %H:%M:%S")

for more formatting options please have a look at the below link,

https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Commontimeformatvariables

Sid

View solution in original post

0 Karma

sdchakraborty
Contributor

Hi,

Is this what you looking for?

|  makeresults 
| eval date = 1546284113.000000
| eval formatted_date = strftime(date,"%d-%m-%Y %H:%M:%S")

for more formatting options please have a look at the below link,

https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Commontimeformatvariables

Sid

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...