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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...