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.
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
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