If you found that the new metrics being generated by Splunk on the input (indexing in many cases) and forwarding side to be useful, I am sure you would want to aggregate them all in a central location. Well, you can do that by using Splunk’s forwarding mechanism itself! Although, it does not matter where you aggregate these metrics, I believe the Deployment Server instance could be a good location, if you have one setup for your installation.
Forwarding metrics.log
Forwarding metrics.log will require that you make the following changes to the configuration on each Splunk instance that you would like to collect the metrics from:
Edit or create inputs.conf in $SPLUNK_HOME/etc/system/local folder
[monitor://$SPLUNK_HOME/var/log/splunk/metrics.log]
_TCP_ROUTING = RouteMetricsToDeploymentServer
Similarly for outputs.conf
[tcpout]
disabled=false
[tcpout:RouteMetricsToDeploymentServer]
server=<deployment_sever_ip>:<deployment_server_port>
If you have many Splunks in your environment, then making these changes on each one of them manually is certainly not an option you would cherish. This is where Deployment Server can help you centralize all your configurations in one place and distribute them to all or selected instances.
Here’s something I like to do
1. Have all Splunks point to a common Deployment Server
This can be achieved very easily by creating/editing deployment.conf in $SPLUNK_HOME/etc/system/local on each Splunk instance.