Splunk Search

useother=f in tstats query? for piechart visualization

mprreddy51
Explorer

Hi,

I have a tstats query and I want to display all "others" in piechart .below is my query:

|tstats count AS "Count of Event Object" from datamodel=abcoper where (nodename = EventObject) groupby "EventObject.ysdDash_consumer"

my pie chart is showing
a=20%
b=30%
c=40%
others=10%

I used USEOTHER=F in the end of the query. but still i am not getting the result.

Any ideas how to use useother=f in tstats?

0 Karma

mprreddy51
Explorer

Thanks Somesh

0 Karma

somesoni2
Revered Legend

That is not the limitation of tstats command but the default behavior of pie chart visualization. By default, all the slices smaller than 1% will be clubbed together under slice "others". This behavior is controlled by attribute charting.chart.sliceCollapsingThreshold. Set this to 0 to show every slice.

See this for more details. http://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#Pie_charts

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...