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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...