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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...