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!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...