Splunk Enterprise

How to display data as percentage?

pranay04
Explorer

I am using a simple query but want to display the data in percentage, There are 8 different sources for this query but in the dashboard my source is dynamic and input through a drop down and each dropdown has several subgroups and I wanto display the number of events in each source subgroup as %age. For example for below I have

source=123.a/123.b/123.c

and in verbose mode I can see the %age logging for all the source but is there a way to display it in the dashboard?

index=abc host=xyz source= 123*
| stats count by source, host

Tags (1)
0 Karma

pkeenan87
Communicator

Try using eventstats in combination with stats, here is an example with data from the internal index:

index=_internal
| stats count by sourcetype
| eventstats sum(count) AS total
| eval pct = round((count / total) * 100 , 2)." %"

0 Karma

pruthvikrishnap
Contributor

Try modifying command using eval command

| eval age = round((age/total_age)*100,1)

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...