Feedback
Got feedback? We want it! Submit your comments and suggestions for our community here.

show percentage

ELADMIN
Explorer

Hi, I would like to fix this alert to show the results in the value columm as a double digit percentage and have the percent sign after the number. for example  27%.  Thank you in advance for your help. 

MY SPL

index=perfmon object=Memory "% Committed Bytes In Use"
| where Value < 25
| table _time, host, Value, date
| dedup host

 

My Result. 

ELADMIN_0-1702390069307.png

 

0 Karma
1 Solution

dtburrows3
Builder

Performing this eval anytime after the where clause should do it.

index=perfmon object=Memory "% Committed Bytes In Use"
    | where Value < 25
    | table _time, host, Value, date
    | dedup host
    | eval Value=round(Value, 0)."%"



View solution in original post

dtburrows3
Builder

Performing this eval anytime after the where clause should do it.

index=perfmon object=Memory "% Committed Bytes In Use"
    | where Value < 25
    | table _time, host, Value, date
    | dedup host
    | eval Value=round(Value, 0)."%"



ELADMIN
Explorer

Yes, that works. thank you dtburrows3.

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...