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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...