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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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