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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...