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.

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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...