Splunk Search

How to convert date time to epoc time.

drogo
Explorer

Team, wanted to convert below time into epoc time. Please help.
time - Nov 16 10:00:57 2024


Labels (1)
0 Karma

sintjm
Path Finder

hi,
try

| makeresults
| eval date="Nov 16 10:00:57 2024"
| eval epoch_time=strptime(date, "%b %d %H:%M:%S %Y")
| fields epoch_time

regards,

Abraham

drogo
Explorer

Thanks Abraham, this helped.

0 Karma

sintjm
Path Finder

Don't mention

0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...