All Apps and Add-ons

Changing Unix index from "os"

dyeo
Engager

Are there any issues I should be aware of before change the index of our unix systems? I'd like to change it from the default "os" to "unix", but wanted to make sure I won't be causing any other issues with other apps.

0 Karma
1 Solution

chrisyounger
SplunkTrust
SplunkTrust

Hi @deyo

It is very common that customers change the index used for their OS monitoring. It shouldn't cause too many issues except with any existing dashboards, searches, reports, ITSI that you have. Use @woodcock 's bash command to find out where you might have searches that explicitly mention the old index name.

Cheers

View solution in original post

0 Karma

dyeo
Engager

got it. thank you both!

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

Hi @deyo

It is very common that customers change the index used for their OS monitoring. It shouldn't cause too many issues except with any existing dashboards, searches, reports, ITSI that you have. Use @woodcock 's bash command to find out where you might have searches that explicitly mention the old index name.

Cheers

0 Karma

woodcock
Esteemed Legend

Run this search on your search head:

find /opt/splunk/etc/ -type f -exec egrep -l "index=os|index = os|index=\"os\"|index = \"os\"" {} \;
0 Karma

genesiusj
Builder

@woodcock

find /opt/splunk/etc/ -type f -exec egrep -l "index=os|index = os|index=\"os\"|index = \"os\"" {} \;

I tried the above with no results.

Just to make sure this was not a false negative, I ran it again replacing "os" with "main".

find /opt/splunk/etc/ -type f -exec egrep -l "index=main|index = main|index=\"main\"|index = \"main\"" {} \;

Same thing. No results.

I'm probably not understanding something. Your help is appreciated.

Thanks and God bless,
Genesius

0 Karma

dyeo
Engager

I guess what I'm asking is if changing the default index for unix boxes, "os", will cause me any headaches down the line. Other apps that would be searching for unix systems using the "os" index.

0 Karma

woodcock
Esteemed Legend

And my answer is: it is impossible to know and why bother guessing? Just go look!

0 Karma
Get Updates on the Splunk Community!

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...