Splunk Search

Convert time 15/Apr/2018:15:08:19.974 +0000 to epoch

Kirantcs
Path Finder

Hi any help would be nice.

Convert time 15/Apr/2018:15:08:19.974 +0000 to epoch

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try ... | eval epoch = strptime(foo, "%d/%b/%Y:%H:%M:%S.%3N %z") | ....

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try ... | eval epoch = strptime(foo, "%d/%b/%Y:%H:%M:%S.%3N %z") | ....

---
If this reply helps you, Karma would be appreciated.

Kirantcs
Path Finder

Thanks rich,

I already have the answer,just missed a "/"

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...