Splunk Search

how to remove other values

mkhedr
Explorer

how to remove other values from this search syntax

index=main sourcetype=access_combined_wcookie productId
| chart count by clientip | iplocation clientip
| geostats count by clientip globallimit=5

Tags (1)
0 Karma

MuS
Legend

Hi mkhedr,

the docs of geostats https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Geostats#Optional_arguments say this:

globallimit 
Syntax: globallimit=<int> 
Description: Controls the number of named categories to add to each pie chart. There is one additional category called "OTHER" under which all other split-by values are grouped. Setting globallimit=0 removes all limits and all categories are rendered. Currently the grouping into "OTHER" only works intuitively for count and additive statistics. Default: 10

Run the same search with | geostats count by clientip globallimit=0 and the other group is no longer available.

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...