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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...