Splunk Search

How to add a unit with a value to a timechart?

chanduira
Explorer

Dear Experts,

We are trying to add unit with a value to a timechart.
My search is:

index = xyz sourcetype = csv source = "C:\\Users\\co*" | eval Capacity =IPDU1_power+IPDU2_power | timechart avg(Capacity) by Rackno 

This search will give an output like Capacity by Rack in timechart. I want to add "KW" unit with Capacity of each rack.

Please help I try with option

| eval Capacity=Capacity."KW" this did not work

0 Karma

somesoni2
Revered Legend

Once you add the string unit KW to the values, it becomes string which you can't plot (only numerical values for y axis). Better option would be to add unit in the y axis label.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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