Deployment Architecture
Highlighted

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

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
Highlighted

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

Motivator

A simple t=now() is completely sufficient!

Try: | makeresults | eval t=now()

View solution in original post

Highlighted

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

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.