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!

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...