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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...