Splunk Search

"Other" option in pie chart

geetanjali
Path Finder

I am displaying my 20 hosts in pie chart using following query:-

index="test" sourcetype="power_usage" | chart first(Power_consumption) over host | sort 20 -first(Power_consumption)

"Other" is not coming in chart. How could i display "other" in my chart. I am using Pie chart to display my data.

Tags (1)
0 Karma

lostpassword
Explorer

try

top 5 ... useother=t

instead of

chart limit=5
0 Karma

Ant1D
Motivator

The following search includes the 'limit' search command. This should bring back the 5 field values + the OTHER field:

index="test" sourcetype="power_usage" | chart limit=5 first(Power_consumption) over host | sort 20 -first(Power_consumption)

geetanjali
Path Finder

Hello,
Thanks for the response. but limit command is not working in "Chart". thie query is giving same result. displaying 20 hosts data in pie chart. But no "others" displayed in chart

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...