Splunk Search

How to compute the duration based on Time picker

Noob_splunker
Explorer

Basically, I want to get duration based on the time picker.

Example, If i select Year to Date in the time picker, i want to know how many minutes are there in Year to Date and assign it as a new field, let say UptimeDuration.

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you want this in your results

| addinfo
| eval duration=now()-info_min_time

info_min_time is the earliest time boundary for the search

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Assuming you want this in your results

| addinfo
| eval duration=now()-info_min_time

info_min_time is the earliest time boundary for the search

Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...