I am trying to use this script: https://answers.splunk.com/answers/34896/simple-installation-script-for-universal-forwarder.html
Everything installs splunk fine via hosts file, however it will not make the deployment.conf file or set the deployment server option. Any thoughts on why this could happen?
I believe you're looking for the wrong file. The file name should be
Try searching for that and see if it's correctly set up:
$ find /opt/splunkforwarder/etc -name deploymentclient.conf /opt/splunkforwarder/etc/system/local/deploymentclient.conf
Sorry, I left that the rest of the name out in my question.. That is the file that isnt being copied though.. I have checked everywhere.. perhaps its a permissions problem ? - should I sudo the initial bash command?
It could be a permission issue. What is the owner of the splunkforwarder directory? Can you post an example line from your hosts line to ensure it contains the user name of the account you're trying to use?