All Apps and Add-ons

Sorting hosts in *nix app

Blu3fish
Path Finder

I've been using the *nix app since I've been using splunk and one thing that always bothered me was the random order of hosts in various dropdowns throughout the app. I've corrected this in the past but always forgot to document my changes and thus they'd be blown away during app upgrades.

0 Karma
1 Solution

Blu3fish
Path Finder

If you want this change to persist you'll need to copy the $SPLUNK_HOME/etc/apps/unix/default/data dir to $SPLUNK_HOME/etc/apps/unix/local/data and then edit the ones under local.

To get your hosts sorted alphabetically (I assume most will find this appealing) I did the following to the xml's of the applicable dashboards:

Line in question (line 25 I believe):

<param name="search">| metadata type=hosts index=os</param>

Changed to:

<param name="search">| metadata type=hosts index=os | sort host</param>

Booyah! A host list that doesn't make your eyes bleed when you look at it.

View solution in original post

Blu3fish
Path Finder

If you want this change to persist you'll need to copy the $SPLUNK_HOME/etc/apps/unix/default/data dir to $SPLUNK_HOME/etc/apps/unix/local/data and then edit the ones under local.

To get your hosts sorted alphabetically (I assume most will find this appealing) I did the following to the xml's of the applicable dashboards:

Line in question (line 25 I believe):

<param name="search">| metadata type=hosts index=os</param>

Changed to:

<param name="search">| metadata type=hosts index=os | sort host</param>

Booyah! A host list that doesn't make your eyes bleed when you look at it.

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...