Splunk Search

get rid of this awful other column

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

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

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.

0 Karma

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.

Influencer

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

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.

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

Path Finder

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