Installation

File Precedence at boot time

gcusello
SplunkTrust
SplunkTrust

Hi at all,

I know the meaning of file precedence in file configurations at index and search time, but what's the precedence in structural files as outputs.conf or deploymentclient.conf?

My need is:

  • I have to change the Deployment Server in an old installation,
  • where, in Universal Forwarders, outputs.conf and deploymentclient.conf are in %SPLUNK_HOME/etc/system/local,
  • and I'd like to insert them in a dedicated TA.

So must I manually delete the old files in %SPLUNK_HOME/etc/system/local, or the new files override the other configurations because they have precedence?

Reading the documentation I  think that the precedence is the one at Index time, so this means that files in %SPLUNK_HOME/etc/system/local have the precedence on the ones in TAs.

I'll start a lab to check this, but did anyone encountered this problem?

Ciao.

Giuseppe

Labels (1)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
The precedence of config files is the same for all config files. $SPLUNK_HOME/etc/system/local overrides all other configs.
A common approach is to include in an app a scripted input that deletes $SPLUNK_HOME/etc/system/local/deploymnetclient.conf and outputs.conf so the local app can take effect.
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust
The precedence of config files is the same for all config files. $SPLUNK_HOME/etc/system/local overrides all other configs.
A common approach is to include in an app a scripted input that deletes $SPLUNK_HOME/etc/system/local/deploymnetclient.conf and outputs.conf so the local app can take effect.
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...