Dashboards & Visualizations

How to convert 3-16:30:19 to minutes.

revathiram
Engager

Please help to convert  ELAPSED of format 3-16:30:19  (3days-16hours:30m:19s) to minutes.

Labels (1)

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=ELAPSED "(?<days>\d+)-(?<hours>\d+):(?<minutes>\d+):"
| eval elapsetime=(days * 60 * 24) + (hours * 60) + minutes

This assumes for less than a day you will still get a zero at the beginning

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...