All Apps and Add-ons

Splunk App for Unix: Configuring

mikelanghorst
Motivator

One of the items on the doc page is confusing - link text

Important:

You can not configure the Splunk App for Unix and Linux from the command line. You must use the Settings pages, described in detail in this topic.
Conversely, there is no way to configure the Splunk Add-on for Unix and Linux in any other way than the command line.

Though the doc does point out this:
Use the Settings: Categories page to add host categories and groups. When you make these changes, the Splunk App for Unix and Linux writes them to $SPLUNK_HOME/etc/apps/SA-nix/lookups/dropdowns.csv.

Are we truly forced to use the UI only to configure the category/grouping? This would be a major pain.

1 Solution

Lucas_K
Motivator

You can manually edit the file from the command line : $SPLUNK_HOME/etc/apps/SA-nix/lookups/dropdowns.csv

The format of this file is

host,unix_category,unix_group
some_example_host,some__example_category,some_example_group

View solution in original post

ChrisG
Splunk Employee
Splunk Employee

You can configure the Splunk Add-on for Unix and Linux from the command line. In fact, that's the only way you can configure the add-on.

You can configure the Splunk App for Unix and Linux only from Splunk Web.

We've updated the docs to clarify.

Lucas_K
Motivator

You can manually edit the file from the command line : $SPLUNK_HOME/etc/apps/SA-nix/lookups/dropdowns.csv

The format of this file is

host,unix_category,unix_group
some_example_host,some__example_category,some_example_group

araitz
Splunk Employee
Splunk Employee

Lucas K is correct, you can edit the file from the CLI, using your favorite CSV editor, or have a saved search update the values. A few important things to consider:

  • make sure you retain the column order: host, unix_category, unix_group
  • make sure you delete the default entry of "*,all_hosts,default" before you add any other entries

jspears
Communicator

My guess would be that anything that creates a sane .csv is fine, including vi. I'm not in a position to test that, so not posting this as an actual answer. 🙂

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...

Splunk Developers: Construct Your Future at the .conf26 Builder Bar

Calling all Splunk architects, platform admins, and app developers: the site is open, and the blueprints are ...

Quick connection discovery mode for forwarders

When a Splunk forwarder loses connectivity to its indexers, it does not always reconnect immediately. In many ...