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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...