Install the Effective Configuration add-on
By default, the Effective Configuration add-on is not installed on agents. To use it, download the add-on from Splunkbase, install it on the agent management server, and then deploy it to your agents. For more information about deploying apps, see Deploy apps to agents.
- Download Splunk_TA_effective_configuration from Splunkbase.
- Untar the
.tgzfile into theetc/deployment-appsdirectory.You have to create an app directory for the agent management to distribute this add-on. The default location is
$SPLUNK_HOME/etc/deployment-apps, but this is configurable through therepositoryLocationattribute inserverclass.conf. For more information, see Create the app directories. - Log in to Splunk Enterprise.
- Select the settings icon (
), and then under the Distributed Environment section, select Agent management.
The Agent management page opens.
- On the Agent Management page, go to the Applications tab. In the list of applications, you can see Splunk_TA_effective_configuration. Its deployment status is set to Not Deployed.
(Optional) Reduce the size of the Effective Configuration add-on
- aix*
- darwin*
- freebsd*
- linux*
- solaris*
- windows*
For example, if you use this add-on only on the linux_arm64 platform, you can remove the following directories: windows_x86_64, windows_x86, solaris_amd64, linux_x86_64, linux_s390x, linux_ppc64le, freebsd_amd64, darwin_x86_64, darwin_arm64, and aix_ppc64.
Deploy the Effective Configuration add-on to agents
- To deploy the Effective Configuration add-on, go to the Server Classes tab.
- Create a new server class, and then add the Effective Configuration add-on to this server class to install it on agents.
Note: You have to add the add-on to at least 1 server class in order to be able to edit this application.
- On the Server classes page, go to the Applications tab and select Edit applications.
- On the Edit applications page, in the Unassigned Applications section, select Splunk_TA_effective_configuration.
- Select the right arrow to move the selected application to the Assigned Applications section.
- Select Save. The application is sent when the agent phonehome is sent from the agent. When the application is saved, the Applications tab displays.
- In the table, select Splunk_TA_effective_configuration.
- In the Details tab, update these settings:
- Select the Enable application option.
- Turn on the Restart agent toggle.
- Add agents to the server class and wait for the add-on installation to complete:
- Go to the Agent Management page and then go to the Server Classes tab.
- Select a server class to which you want to add agents.
- Go to the Agents tab and select Edit agents. For more details about possible actions in this page, see Specify agents.
- Specify the agents you want in the server class, and then select Save.
- After the deployment is complete, typically within 1 phonehome period, you can access the effective configuration used on agents. For more information, see View configurations installed on agents.
Data collection interval
After deployment, the add-on collects effective configuration data from agents at a regular interval defined by the scripted input in the add-on inputs.conf file.
To change the collection interval, update the interval setting in the inputs.conf file within the deployed add-on. For example, to collect data every 15 minutes, set:
interval = 900
Verify that the Effective Configuration add-on is installed
- To check if the Effective Configuration add-on is installed, on the Server classes page, go to the Agents tab and select an agent.
- On the Agents page, go to the Applications tab and check that the status of the Splunk_TA_effective_configuration add-on is set to Deployed.