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")

Labels (1)
0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

Try

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

View solution in original post

renjith_nair
SplunkTrust
SplunkTrust

Try

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

View solution in original post

Rukmani_Splunk
Path Finder

Thanks a lot  it  is working  

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!