Deployment Architecture

How do I get the current time in unix/epoch time?

blindfire_bandi
Explorer

This is what I'm trying currently, and I'm not certain that it's working

| eval t=now()
| eval t_unixTime = strptime(t, "%Y-%m-%dT%H:%M:%S")
0 Karma
1 Solution

DMohn
Motivator

A simple t=now() is completely sufficient!

Try: | makeresults | eval t=now()

View solution in original post

DMohn
Motivator

A simple t=now() is completely sufficient!

Try: | makeresults | eval t=now()

blindfire_bandi
Explorer

Ah, I see! It's always nice when you can condense your query. I wasn't familiar with the makeresults command; so that helps as well. Thanks DMohn.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...