Splunk Search

get rid of this awful other column

mataharry
Communicator

I want to do a " | stat count by host " or a " | timechart span=1d count by host".

I need the detail for each host. Now I only have the 10 first and a "other column" with all the others.

1 Solution

yannK
Splunk Employee
Splunk Employee

Simple, add the "useother=0", you will have the complete list of your columns (but it can be confusing if you have too much).

by example : | timechart span=1d count by host useother=0

View solution in original post

chrisherdt
Engager

I know this is an old question, but to show details for each host, use limit=0, for example:

| timechart span=1d count by host limit 0

See Timechart for details.

jarrodrobins
Engager

Adding userother=0 or f DOES NOT show all the columns. It merely removes the OTHER field which is as good as useless in your case.

There is potentially a cleaner way (I'd love to know, personally), but what you can do is increase the threshold for the amount of columns that get aggregated into this nasty 'OTHER' field by using the where command. eg,

timechart span=1d count by host where top100

Supposedly timechart, by default, has a where clause of top10. Frankly I'd like to know why this 'feature' is the default behaviour. It should be optional.

This top100 business obviously isn't optimal, but it's the best I can offer I'm afraid.

jonuwz
Influencer

+1 for an example of the where clause. Been looking for one of those for a while

sideview
SplunkTrust
SplunkTrust

as of quite a while ago you can just do "timechart span=1d count by host limit=10" and not use the clunkier where syntax. I think it was 4.1 when that changed.

yannK
Splunk Employee
Splunk Employee

Simple, add the "useother=0", you will have the complete list of your columns (but it can be confusing if you have too much).

by example : | timechart span=1d count by host useother=0

HXCaine
Path Finder

This is not correct, it only HIDES the 'other' column. See Jarrod's answer for a correct solution

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...