Splunk Search

Errors in percentage when using "top" command?

merethhe
Engager

I'm performing a very simple search:

type="Workflow model" | top 20 org

My problem is, the number of events does not correspond to the listed percentage. Example: The total number of events is 1 503 929 and there are 649726 events where org=x. This should give a percentage of approximately 43,2. However, Splunk displays the percentage as 44,782654.

Is this merely a rounding problem, or am I missing something?

0 Karma
1 Solution

somesoni2
Revered Legend

Top command you posted will return percentage for events where field org is present. Use this and see if percentage matches.

type="Workflow model" org=* | top 20 org

View solution in original post

somesoni2
Revered Legend

Top command you posted will return percentage for events where field org is present. Use this and see if percentage matches.

type="Workflow model" org=* | top 20 org

merethhe
Engager

Of course, that's it. Thanks!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...