I have borrowed a search from an earlier question to help give kWh information on a given month. How can I modify the search to show only the host_name and the sum total of the avg_kWh column?
index=network sourcetype=zabbix metric_name="st4InputCordActivePower" host_name="pdu02.LON5.Contoso.com" | bin _time span=1h | stats count as samples sum(value) as watt_sum by _time | eval kW_Sum=watt_sum/1000 | eval avg_kWh=kW_Sum/samples | addcoltotals
2022-05-30 18:00
12
44335.0
3.69458
44.3350
....
2022-05-31 23:00
12
43489.0
3.62408
43.4890
7686
27425688.0
2595.96346
27425.6880
... View more