Dashboards & Visualizations

Calculation of the kwh difference in an Energy Dashboard

alex8103
Explorer

Hello everyone,

can anyone help me with how I can get the difference to the previous value from a device that sends me the total kwh number in order to be able to calculate a consumption per specified time in the Splunk dashboard? Currently, I am only shown an ever-increasing value.

Thank you very much!

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You have several options

1) The delta command to calculate the difference

2) The autoregress command to copy over value from previous result row and calculate difference manually

3) The streamstats command to do the same as 2) but in a more complicated way 😉

alex8103
Explorer

Ah, very good. Thank you!

 

 

 

 

0 Karma
Get Updates on the Splunk Community!

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...