Hello everyone,
I have set up my Splunk server and Splunk forwarder. When I explore the settings, I can see one host as shown in the image. However, when I try to add data from the Add Data section, I get an error like in the other image. Can you help me resolve this issue?
First, log in to the server where the Universal Forwarder is installed.
Edit or create the deploymentclient.conf file in the following path:
$SPLUNK_HOME/etc/system/local/deploymentclient.conf
Add the following configuration:
[deployment-client]
# Enable the deployment client
disabled = false
[target-broker:deploymentServer]
# Specify the IP address or hostname and port of the Deployment Server
targetUri = <deployment_server_ip>:<deployment_server_port>
For example:
[deployment-client]
disabled = false
[target-broker:deploymentServer]
targetUri = 192.168.1.100:8089
To apply the changes, restart the Splunk Universal Forwarder:
$SPLUNK_HOME/bin/splunk restart
On the Splunk Deployment Server, go to:
------
To elaborate on @jawahir007 's answer.
What you see "in settings" is forwarder monitoring. It only shows you what it can read from forwarder's internal logs sent to your Splunk server. It shows your forwarder so it means your output on the forwarder is set correctly to your Splunk server and the data if properly forwarded. I'm assuming so far no "production" data is being forwarded, just the internal forwarder's logs.
What you're trying to do - add an input from remote forwarder is something completely different which is done with a Deployment Server functionality. Typically in a big setup a Deployment Server is an additional server which "governs" configuration of its deployment clients (usually forwarders). In your case, as you have just one Splunk server, you must point your forwarder to your server as @jawahir007 showed. BTW, in production use you normally don't use the GUI to add remote inputs but that's a story for another time 😉
First, log in to the server where the Universal Forwarder is installed.
Edit or create the deploymentclient.conf file in the following path:
$SPLUNK_HOME/etc/system/local/deploymentclient.conf
Add the following configuration:
[deployment-client]
# Enable the deployment client
disabled = false
[target-broker:deploymentServer]
# Specify the IP address or hostname and port of the Deployment Server
targetUri = <deployment_server_ip>:<deployment_server_port>
For example:
[deployment-client]
disabled = false
[target-broker:deploymentServer]
targetUri = 192.168.1.100:8089
To apply the changes, restart the Splunk Universal Forwarder:
$SPLUNK_HOME/bin/splunk restart
On the Splunk Deployment Server, go to:
------