Getting Data In

Converting into EPOCH time

Rukmani_Splunk
Path Finder

Hi  All,

 I  want  to convert  the following  into  Epoch  time ,but  it  is not  getting  resolved.

 

2020-10-05 23:06:05.946Asia/Singapore  and i  use the below  command 

 

eval  time=strptime("testtime",%Y-%m-%d%s%H:%M:%S.%3N")

0 Karma
1 Solution

renjith_nair
Legend

Try

 |eval time=strptime(test,"%Y-%m-%d %H:%M:%S.%3N%Z")
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Try

 |eval time=strptime(test,"%Y-%m-%d %H:%M:%S.%3N%Z")
---
What goes around comes around. If it helps, hit it with Karma 🙂

Rukmani_Splunk
Path Finder

Thanks a lot  it  is working  

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...