Getting Data In

How to convert timestamp into proper date

sahityasweety
Explorer

Hello Splunk Community,

I am trying to extract the "timestamp":"1715235824441" with proper details.
Could anyone help me on this.
Thanks in advance .

 

Regards,
Sahitya

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sahityasweety,

this timestamp seems to be in epochtime, so to transfrom it in human readable format you can use the strftime function in the eval command.

e.g. to transform in format yyy-mm-dd HH:MM:SS, you could try:

| eval timestamp=strftime(timetampo,"%Y-%m-%d %H:%M:%S")

Ciao.

Giuseppe

Get Updates on the Splunk Community!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...