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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...