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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...