Update common peer configurations and apps
The peer update process described in this topic ensures that all peer nodes share a common set of key configuration files. You must manually invoke this process to distribute and update common files, including apps, to the peer nodes. The process also runs automatically when a peer joins the cluster.
For information on peer configuration files, see Manage common configurations across all peers. That topic details exactly which files must be identical across all peers. In brief, the configuration files that must be identical in most circumstances are
transforms.conf. Other configuration files can also be identical, depending on the needs of your system. Since apps usually include versions of those key files, you should also maintain a common set of apps across all peers.
The set of configuration files and apps common to all peers, which is managed from the manager node and distributed to the peers in a single operation, is called the configuration bundle. The process used to distribute the configuration bundle is known as the configuration bundle method.
To distribute new or edited configuration files or apps across all the peers, you add the files to the configuration bundle on the manager node and tell the manager to distribute the files to the peers.
Structure of the configuration bundle
The configuration bundle consists of the set of files and apps common to all peer nodes.
On the manager node
On the manager, the configuration bundle resides under the
$SPLUNK_HOME/etc/manager-apps directory. The set of files under that directory constitute the configuration bundle. They are always distributed as a group to all the peers. The directory has this structure:
$SPLUNK_HOME/etc/manager-apps/ _cluster/ default/ local/ <app-name>/ <app-name>/ ...
Prior to Splunk Enterprise version 9.0, the cluster manager used the
master-apps directory as the configuration bundle repository. Starting with 9.0, a new directory called
manager-apps was added to the cluster manager as a replacement for
master-apps is deprecated, you can continue to use it, rather than switching to
manager-apps. If you choose to do so, substitute
master-apps for all references to
manager-apps in this manual. This issue is discussed in detail elsewhere in this topic.
Note the following:
/_clusterdirectory is a special location for configuration files that need to be distributed across all peers:
/_cluster/defaultsubdirectory contains a default version of
indexes.conf. Do not add any files to this directory and do not change any files in it. This peer-specific default
indexes.confhas a higher precedence than the standard default
indexes.conf, located under
/_cluster/localsubdirectory is where you can put new or edited configuration files that you want to distribute to the peers.
/<app-name>subdirectories are optional. They provide a way to distribute any app to the peer nodes. Create and populate them as needed. For example, to distribute "appBestEver" to the peer nodes, place a copy of that app in its own subdirectory:
- To delete an app that you previously distributed to the peers, remove its directory from the configuration bundle. When you next push the bundle, the app will be deleted from each peer.
- The manager node only pushes the contents of subdirectories under
manager-apps. It will not push any standalone files directly under
manager-apps. For example, it will not push the standalone file
/manager-apps/file1. Therefore, be sure to place any standalone configuration files in the
You explicitly tell the manager node when you want it to distribute the latest configuration bundle to the peers. In addition, when a peer registers with the manager (for example, when the peer joins the cluster), the manager distributes the current configuration bundle to it.
When the manager distributes the bundle to the peers, it distributes the entire bundle, overwriting the entire contents of any configuration bundle previously distributed to the peers.
manager-apps location is only for peer node files. The manager does not use the files in that directory for its own configuration needs.
Which directory to use: manager-apps or master-apps?
Prior to Splunk Enterprise version 9.0, the cluster manager used the
master-apps directory as the sole repository for configuration-bundles. In version 9.0, a new repository directory with the name
manager-apps was added to the cluster manager to replace
So as not to break any customer-generated scripts or other tooling, the
master-apps directory continues to exist on upgraded installations and continues to hold any configuration bundle files already existing within that directory. You can use either directory as the repository, but you cannot use both. The cluster manager pushes the bundle from only a single location.
The best practice is to use
manager-apps as the configuration bundle repository, because
master-apps has been deprecated and will be eliminated in some future release.
Here is how the manager decides which directory to use for the bundle push:
- If you have user-created content in
manager-apps, the manager pushes the bundle from there. (If there is also content in
master-apps, the manager ignores that content except to log a warning in
- If you do not have content in
manager-apps, the manager pushes the bundle from
When deciding which directory to use, the manager ignores any files residing under the
Therefore, when you upgrade your cluster manager from pre-9.0 to 9.0 or later, you must decide which location to use for your configuration bundle:
- If you choose to continue using
master-apps.as the repository, do not place any files in
- If you choose to switch to
manager-apps, move any existing files from
manager-appsand delete those files from
You can choose to change the bundle repository location from
manager-apps either immediately following the upgrade or at some later time. When you change the repository location, be sure to upgrade any scripts, and so on, that reference the previous location.
On the peers
On the peers, the distributed configuration bundle resides under
$SPLUNK_HOME/etc/peer-apps. This directory is created soon after a peer is enabled, when the peer initially gets the latest bundle from the manager.
Prior to Splunk Enterprise version 9.0, the peer nodes used the
slave-apps directory as the configuration bundle repository. Starting with 9.0,
slave-apps. If your peer node was upgraded from a pre-9.0 version, the
slave-apps directory was renamed to
peer-apps during the upgrade process.
When you upgrade to 9.0, the
slave-apps directory is automatically renamed to
peer-apps. As part of the upgrade, you must manually change any external hardcoded references to
slave-apps, such as external scripts, SSL certificates, and so on, to
Except for the different name for the top-level directory, the structure and contents of the configuration bundle are the same as on the cluster manager:
$SPLUNK_HOME/etc/peer-apps/ _cluster/ default/ local/ <app-name>/ <app-name>/ ...
Leave the downloaded files in this location and do not edit them. If you later distribute an updated version of a configuration file or app to the peers, it will overwrite any earlier version in
$SPLUNK_HOME/etc/peer-apps. You want this to occur, because all peers in the cluster must be using the same versions of the files in that directory.
For the same reason, do not add any files or subdirectories directly to
$SPLUNK_HOME/etc/peer-apps. The directory gets overwritten each time the manager redistributes the configuration bundle.
When Splunk software evaluates configuration files, the files in the
$SPLUNK_HOME/etc/peer-apps/[_cluster|<app-name>]/local subdirectories have the highest precedence. For information on configuration file precedence, see Configuration file precedence in the Admin Manual.
Settings that you should not distribute through the configuration bundle
$SPLUNK_HOME/etc/peer-apps directory on the peers is read-only. This is necessary and beneficial behavior, because each time you distribute a new bundle, the directory gets overwritten in its entirety. You would thus otherwise lose any changes made to settings in that directory. Also, the cluster relies on the settings in that directory being identical across all peers.
Therefore, if you distribute a setting through the configuration bundle method that the peer needs to update automatically in some way, the peer will do so by creating a new version of the app under
$SPLUNK_HOME/etc/apps. Since you cannot have two apps with the same name, this generates "unexpected duplicate app" errors in
A common cause of this behavior is distributing SSL passwords through the configuration bundle. Splunk Enterprise overwrites the password with an encrypted version upon restart. But if you distribute the setting through the configuration bundle, the peers cannot overwrite the unencrypted password in its bundle location under
$SPLUNK_HOME/etc/peer-apps. Therefore, upon restart after bundle push, they instead write the encrypted version to
$SPLUNK_HOME/etc/apps, in an app directory with the same name as its name under
For example, do not push the following setting in
[SSL] password = <your_password>
If the setting is in an app directory called "newapp" in the configuration bundle, upon restart the peer will create a "newapp" directory under
$SPLUNK_HOME/etc/apps and put the setting there. This results in duplicate "newapp" apps.
Best practice for distributing app.conf in the configuration bundle
If you add a new
reload.<conf_file_name> = simple parameter to
app.conf in the configuration bundle, you must first push
app.conf to the peer nodes, before you push updates to the configuration file referenced in the new parameter. After you push the
app.conf file, subsequent changes to the referenced configuration file in the app context will not require a peer restart.
For example, if you add
reload.inputs = simple to
app.conf, then push
app.conf to peer nodes, when you next push an update to
inputs.conf in the specific app context, peer nodes will reload and not require a restart.
app.conf in the configuration bundle:
- For each app that you want to distribute, determine if
app.confcontains a new
reload.<conf_file_name> = simpleparameter.
- Remove any configuration files referenced in
reload.<conf_file_name> = simplefrom the configuration bundle.
- Push the modified configuration bundle containing
app.confto the set of peers. See Apply the bundle to the peers.
- Return the referenced configuration file to the appropriate app directory in the configuration bundle.
- Make any changes to the configuration file that you want to distribute to peer nodes.
- Push the configuration bundle to the peers.
For more information on
reload.<conf_file_name> = simple, see app.conf in the Admin Manual.
Distribute the configuration bundle
To distribute new or changed files and apps across all peers, follow these steps:
- Prepare the files and apps and test them.
- Move the files and apps into the configuration bundle on the manager node.
- (Optional) Validate the bundle and check restart.
- Apply the bundle to the peers.
The manager pushes the entire bundle to the peers. This overwrites the contents of the peers' current bundle.
1. Prepare the files and apps for the configuration bundle
Make the necessary edits to the files you want to distribute to the peers. It is advisable that you then test the files, along with any apps, on a standalone test indexer to confirm that they are working correctly, before distributing them to the set of peers. Try to combine all updates in a single bundle, to reduce the impact on the work of the peer nodes.
For more information on how to configure the files, see Manage common configurations across all peers and Configure the peer indexes in an indexer cluster.
If the configuration bundle subdirectories contain any
indexes.conf files that define new indexes, you must explicitly set each index's
repFactor attribute to
auto. This is necessary for
indexes.conf files that reside in app subdirectories, as well as any
indexes.conf file in the
For more information, see The indexes.conf repFactor attribute.
2. Move the files and apps into the configuration bundle on the manager node
When you are ready to distribute the files and apps, copy them to
$SPLUNK_HOME/etc/manager-apps/ on the manager node:
- Put apps directly under the
manager-appsdirectory. For example,
- Put standalone files in the
3. (Optional) Validate the bundle and check restart
You can validate the bundle and check whether applying the bundle will require a restart of the peer nodes, without applying the bundle. Once you confirm that the bundle is valid across all peer nodes, you can then apply it as a separate step.
Validation is useful for ensuring that the bundle will apply across all peer nodes without problems. The validation process also provides information that is useful for debugging invalid bundles.
The ability to check restart is useful for admins who want to defer bundle distribution until a period of low activity or a maintenance window, and avoid possible restart-related indexing or search interruption. See Restart or reload after configuration bundle changes?
You can validate the bundle and check restart using Splunk Web or the CLI.
Use Splunk Web to validate the bundle and check restart
Use the Validate and Check Restart button to validate the bundle and check if peer nodes will require a restart. This button performs the same function as the CLI command:
splunk validate cluster-bundle --check-restart. See Use the CLI to validate the bundle and check restart.
To validate the bundle and check restart:
- On the manager node, in Splunk Web, click Settings > Indexer Clustering.
The Manager Node dashboard opens.
- Click Edit > Configuration Bundle Actions.
- Click Validate and Check Restart > Validate and Check Restart.
A message appears that indicates bundle validation and check restart success or failure.
If bundle validation and check restart succeeds, then the bundle is acceptable for distribution to the peer nodes. Information about the validated bundle appears in the UI, including whether a restart of peer nodes is required. The UI also displays bundle checksums, which you can use to identify and track the active bundle, the previous bundle, and the latest check restart bundle.
You can distribute the bundle from the manager to the peer nodes using either Splunk Web or the CLI. See 4. Apply the bundle.
If validation and check restart fails, then the bundle is not acceptable for distribution to the peers. In this case, review the bundle details for information that might help you troubleshoot the issue. Make sure that the configuration bundle structure is correct for distribution to peer nodes. See Structure of the configuration bundle.
Use the CLI to validate the bundle and check restart
To validate the bundle only, run
splunk validate cluster-bundle:
splunk validate cluster-bundle
This command returns a message confirming that bundle validation has started. In certain failure conditions, it also indicates the cause of failure.
To validate the bundle and check whether a restart is necessary, include the
splunk validate cluster-bundle --check-restart
This version of the command first validates the bundle. If validation succeeds, it then checks whether a peer restart is necessary.
To view the status of bundle validation, run the
splunk show cluster-bundle-status command:
splunk show cluster-bundle-status
This command indicates validation success. In the case of validation failure, it provides insight into the cause of failure. It also indicates if peer restart is required.
Here is an example of the output from the
splunk show cluster-bundle-status command after a successful validation:
manager cluster_status=None active_bundle checksum=576F6BBB187EA6BC99CE0615B1DC151F timestamp=1495569737 (in localtime=Tue May 23 13:02:17 2017) latest_bundle checksum=576F6BBB187EA6BC99CE0615B1DC151F timestamp=1495569737 (in localtime=Tue May 23 13:02:17 2017) last_validated_bundle checksum=1E0C4F0A7363611774E1E65C8B3932CF last_validation_succeeded=1 timestamp=1495574646 (in localtime=Tue May 23 14:24:06 2017) last_check_restart_bundle checksum=1E0C4F0A7363611774E1E65C8B3932CF last_check_restart_result=restart required timestamp=1495574646 (in localtime=Tue May 23 14:24:06 2017) Peer 1 1D00A8C2-026B-4CAF-90D6-5D5D39445569 default active_bundle=576F6BBB187EA6BC99CE0615B1DC151F latest_bundle=576F6BBB187EA6BC99CE0615B1DC151F last_validated_bundle=1E0C4F0A7363611774E1E65C8B3932CF last_bundle_validation_status=success last_bundle_checked_for_restart=1E0C4F0A7363611774E1E65C8B3932CF last_check_restart_result=restart required restart_required_apply_bundle=0 status=Up ...
last_validated_bundle identifies the newly validated bundle. Notice that it differs from the
active_bundle, which identifies the bundle that was most recently applied and is currently active across the peer nodes.
last_validation_succeeded=1 field indicates that validation succeeded.
On the manager node, the
last_check_restart_result=restart required field indicates that a restart is required on at least one of the cluster peers.
On the peers, the
last_check_restart_result=restart required field indicates that a restart of that individual peer is required.
If you validate the bundle without applying it, the contents of the
$SPLUNK_HOME/etc/manager-apps directory on the manager node will differ from the contents of the
$SPLUNK_HOME/etc/peer-apps directory on the peer nodes until you do apply the bundle. This has no effect on the operation of the cluster, but it is important to be aware that the difference exists.
4. Apply the bundle to the peers
To apply the configuration bundle to the peers, you can use Splunk Web or the CLI.
You cannot initiate a configuration bundle push if a bundle push is currently in progress.
Use Splunk Web to apply the bundle
To apply the configuration bundle to the peers:
- On the manager node, in Splunk Web, click Settings > Indexer clustering.
The Manager Node dashboard appears.
- Click Edit > Configuration Bundle Actions.
The configuration bundle actions dashboard opens, showing information on the last successful bundle push.
- Click Push.
A pop-up window warns you that the distribution might, under certain circumstances, initiate a restart of all peer nodes. For information on which configuration changes cause a peer restart, see Restart or reload after configuration bundle changes?.
- Click Push Changes.
The screen provides information on the distribution progress. Once the distribution completes or aborts, the screen indicates the result.
- In the case of a successful distribution, after each peer successfully validates the bundle, the manager coordinates a rolling restart of all the peer nodes, if necessary.
- In the case of an aborted distribution, it indicates which peers could not receive the distribution. Each peer must successfully receive and apply the distribution. If any peer is unsuccessful, none of the peers will apply the bundle.
When the push is successful, the peers use the new set of configurations, now located in their local
Leave the files in
For more information on the distribution process, see the following section on applying the bundle through the CLI.
Use the CLI to apply the bundle
- To apply the configuration bundle to the peers, run this CLI command on the manager node:
splunk apply cluster-bundle
It responds with this warning message:
Caution: Under some circumstances, this command will initiate a rolling restart of all peers. This depends on the contents of the configuration bundle. For details, refer to the documentation. Do you wish to continue? [y/n]:
For information on which configuration changes cause a rolling restart, see Restart or reload after configuration bundle changes?.
- To proceed, respond to the message with
y. You can avoid this message by appending the flag
--answer-yesto the command:
splunk apply cluster-bundle --answer-yes
splunk apply cluster-bundlecommand causes the manager node to distribute the new configuration bundle to the peers, which then individually validate the bundle. During this process, each peer validates the settings for all
indexes.conffiles in the bundle. After all peers successfully validate the bundle, the manager coordinates a rolling restart of all the peer nodes, if necessary.
The download and validation process usually takes just a few seconds to complete. If any peer is unable to validate the bundle, it sends a message to the manager, and the manager displays the error on its dashboard in Splunk Web. The process will not continue to the next phase - reloading or restarting the peers - unless all peers successfully validate the bundle.
If validation is not successful, you must fix any problems noted by the manager and rerun
splunk apply cluster-bundle.
Once validation is complete, the manager node tells the peers to reload or, if necessary, it initiates a rolling restart of all the peers. For details on how rolling restart works, see Perform a rolling restart of an indexer cluster. To set searchable rolling restart as the default mode for rolling restarts triggered by a bundle push, see Use searchable rolling restart with configuration bundle push.
When the process is complete, the peers use the new set of configurations, located in their local
Leave the files in
Once an app has been distributed to the set of peers, you launch and manage it on each peer in the usual manner, with Splunk Web. See Managing app configurations and properties in the Admin Manual.
apply cluster-bundle command takes an optional flag,
--skip-validation, for use in cases where a problem exists in the validation process. You should only use this flag under the direction of Splunk Support and after ascertaining that the bundle is valid. Do not use this flag to circumvent the validation process unless you know what you are doing.
You can also validate the bundle without applying it. This is useful for debugging some validation issues. See 3. (Optional) Validate the bundle.
Use the CLI to view the status of the bundle push
To see how the cluster bundle push is proceeding, run this command from the manager node:
splunk show cluster-bundle-status
This command tells you whether bundle validation succeeded or failed. It also indicates the restart status of each peer.
Restart or reload after configuration bundle changes?
Some changes to files in the configuration bundle require that the peers restart. In other cases, the peers can reload the configuration files, avoiding any interruption to indexing or searching. The bundle reload phase on the peers determines whether a restart is required and directs the manager to initiate a rolling restart of the peers only if necessary.
Determine when restart or reload occurs
The following summarizes reload and restart behavior when pushing configuration changes to indexer cluster peers:
Reload occurs when:
- You make changes to any configuration file listed under the
app.conf, with the exception of certain changes to
indexes.confthat still require a restart. For a list of changes to
indexes.confthat require a restart, see Determine which indexes.conf changes require restart.
- You make any of these changes to
indexes.conf(these changes do not require a restart and trigger a reload only):
- Adding new index stanzas
- Enabling or disabling an index with no data
- Changing any attributes not explicitly listed as requiring restart in Determine which indexes.conf changes require restart.
server.conffile contains only the
conf_replication_include <conf_file_name> = trueattribute under the
shclusteringstanza and the file contains no other attributes.
Restart occurs when:
- You make changes to any configuration file not listed in the
- You make any of the changes to
indexes.conflisted in Determine which indexes.conf changes require restart.
- You make any changes to a
server.conffile that contains attributes other than
conf_replication_include <conf_file_name> = true.
- You delete an existing app from the configuration bundle.
For more information, see When to restart Splunk Enterprise after a configuration file change in the Admin Manual.
Configuration file reload triggers in app.conf
Splunk apps can contain a combination of Splunk Enterprise core configuration files and custom configuration files, such as those created by app developers for both private apps and public apps on Splunkbase. Whether these configuration files reload when you push configuration changes to cluster peers depends on reload trigger settings in
Many Splunk Enterprise core configuration files reload by default, with some exceptions outlined in the previous section. These files have pre-defined reload triggers specified under the
[triggers] stanza in
$SPLUNK_HOME/etc/system/default/app.conf, which causes them to reload automatically.
A custom configuration file is by definition any configuration file that does not have a corresponding
.spec file in
$SPLUNK_HOME/etc/system/README. This includes custom configuration files found in third party apps, such as
eventgen.conf, and so on.
All custom configuration files reload by default, unless the file has a custom reload trigger in
app.conf. For example, the Splunk Security Essentials app,
app.conf contains the following custom reload trigger:
reload.ssenav = http_get /SSEResetLocalNav. When you push configuration changes for a custom configuration file that has a custom reload trigger in
app.conf, Spunk software tries to honor the custom reload trigger setting. If that custom reload trigger fails, then a rolling restart occurs.
If a custom configuration file does not have a reload trigger specified in app.conf, the default behavior is to restart for unknown configs. If a restart is not required, you can set the conf level trigger in
reload.<conf_file_name> = simple.
For detailed information on reload trigger settings for custom configuration files, see app.conf in the Admin Manual.
For a listing of the most frequently used reloadable apps and .conf files, see Restart vs. reload behavior of common apps and .conf files in the Splunk Cloud Platform documentation.
Stanza-level reload triggers for inputs.conf
Stanza-level reload triggers in
app.conf enable the reload of only those specific configuration file stanzas that change when you perform a configuration bundle push. This lets you perform more efficient configuration updates based on which stanzas in the configuration file will change.
Stanza-level reload currently applies to a subset of stanzas in
inputs.conf only. Stanzas in
inputs.conf that have a
reload.<conf_file_name>.<conf_stanza_prefix> entry under the
[triggers] stanza in
app.conf will reload when changes are made to the specified stanza.
Changes made to any
inputs.conf stanzas that are not specified in a stanza-level reload entry will trigger a rolling restart.
Stanza-level reload for
inputs.conf applies only when pushing changes to the configuration bundle in the indexer clustering context.
The following stanzas are reloadable in
|.conf file name||stanza prefix||Reload or restart|
For detailed information on stanza-level reload triggers, see app.conf. in the Admin Manual.
Disable reload triggers in app.conf
You can disable both .conf-level reload triggers and stanza-level reload triggers by specifying the value
never for any reload trigger entry in
app.conf. Any reload trigger entry with a value of
never will trigger a rolling restart when configuration changes occur. This can be useful if for any reason you want a specific configuration change to trigger a rolling restart.
For more information on configuring reload triggers, see app.conf. in the Admin Manual.
Use searchable rolling restart with configuration bundle push
Searchable rolling restart lets you perform a rolling restart of peer nodes with minimal interruption of in-progress searches. You can set searchable rolling restart in
server.conf as the default mode for all rolling restarts triggered by a configuration bundle push. For instructions, see Set searchable rolling restart as default mode for bundle push.
For more information, see Perform a rolling restart of an indexer cluster.
Rollback the configuration bundle
You can rollback the configuration bundle to the previous version. This action allows you to recover from a misconfigured bundle.
The rollback action toggles the most recently applied configuration bundle on the peers with the previously applied bundle. You cannot rollback beyond the previous bundle.
For example, say that the peers have an active configuration bundle "A" and you apply a configuration bundle "B", which then becomes the new active bundle. If you discover problems with B, you can rollback to bundle A, and the peers will then use A as their active bundle. If you rollback a second time, the peers will return again to bundle B . If you rollback a third time, the bundles will return again to A, and so on. The rollback action always toggles the two most recent bundles.
You can rollback the configuration bundle using Splunk Web or the CLI.
Rollback the configuration bundle using Splunk Web
- On the manager node, in Splunk Web, click Settings > Indexer Clustering.
The Manager Node dashboard opens.
- Click Edit > Configuration Bundle Actions.
- Click Rollback.
A message appears that indicates rollback success or failure.
If no previous configuration bundles exists, the Rollback button will be disabled.
Rollback the configuration bundle using the CLI
To rollback the configuration bundle, run this command from the cluster manager:
splunk rollback cluster-bundle
splunk apply cluster-bundle, this command initiates a rolling restart of the peer nodes, when necessary.
You can use the
splunk show cluster-bundle-status command to determine the current active bundle. You can use the
cluster/manager/info endpoint to get information about the current active and previous active bundles.
manager-apps folder gets corrupted, resulting in rollback failure, a message specifying the failure and the workaround appears on the manager node dashboard, as well as in
splunkd.log. To remediate, follow the instructions in the message. This includes removing the
$SPLUNK_HOME/etc/manager-apps.dirty marker file, which indicates failure, and manually copying over the active bundle, as specified in the message.
On Windows, the rollback operation fails if there are open file handles to
$SPLUNK_HOME/etc/manager-apps and its contents.
Distribution of the bundle when a peer starts up
After you initially configure a Splunk instance as a peer node, you must restart it manually in order for it to join the cluster, as described in Enable the peer nodes. During this restart, the peer connects with the manager node, downloads the current configuration bundle, validates the bundle locally, and then restarts again. The peer only joins the cluster if bundle validation succeeds. This same process also occurs when an offline peer comes back online.
If validation fails, the user must fix the errors and run
splunk apply cluster-bundle from the manager.
Use deployment server to distribute the apps to the manager node
Although you cannot use deployment server to directly distribute apps to the peers, you can use it to distribute apps to the manager node's configuration bundle location. Once the apps are in that location, the manager can distribute them to the peer nodes, using the configuration bundle method described in this topic.
In addition to the deployment server, you can also use third party distributed configuration management software, such as Puppet or Chef, to distribute apps to the manager.
To use the deployment server to distribute files to the configuration bundle on the manager node:
- Configure the manager as a client of the deployment server, as described in Configure deployment clients in Updating Splunk Enterprise Instances.
- On the manager, edit deploymentclient.conf and set the
repositoryLocationattribute to the
[deployment-client] serverRepositoryLocationPolicy = rejectAlways repositoryLocation = $SPLUNK_HOME/etc/manager-apps
- On the deployment server, create and populate one or more deployment apps for download to the manager's configuration bundle. Make sure that the apps follow the structural requirements for the configuration bundle, as outlined earlier in this topic. For information on creating deployment apps, see Create deployment apps in Updating Splunk Enterprise Instances .
- Create one or more server classes that map the manager node to the deployment apps. For information on creating server classes, see Create server classes in Updating Splunk Enterprise Instances.
- Each server class must include the
stateOnClient = noopsetting:
[serverClass:<serverClassName>] stateOnClient = noop
Do not override this setting at the app stanza level.
- Download the apps to the manager node.
Once the manager receives the new or updated deployment apps in the configuration bundle, you can distribute the bundle to the peers, using the method described in the current topic.
Take steps to ensure that the manager does not restart automatically after receiving the deployment apps. Specifically, when defining deployment app behavior, do not change the value of the
restartSplunkdsetting from its default of "false" in
serverclass.conf. If you are using forwarder management to define your server classes, make sure that the "Restart splunkd" field on the Edit App screen is not checked.
For detailed information on the deployment server and how to perform necessary operations, read the Updating Splunk Enterprise Instances manual.
Configure the peer indexes in an indexer cluster
Manage configurations on a peer-by-peer basis
This documentation applies to the following versions of Splunk® Enterprise: 9.0.0, 9.0.1, 9.0.2, 9.0.3, 9.0.4, 9.0.5
Feedback submitted, thanks!