I've had the same problem. I solved it in the way that dshpritz mentioned above. Here is my solution in powershell:
$hostname = hostname
$Path = 'C:\Program Files\SplunkUniversalForwarder\etc\system\local\'
$inputs = 'inputs.conf'
$server = 'server.conf'
if(Test-Path ($Path + $inputs)){
"[default]`nhost = $($hostname)" | Out-File ($Path + $inputs)
Remove-Item ($Path + $server)
}
Stop-Service SplunkForwarder -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
Start-Service SplunkForwarder -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
It works like a charm.
Thanks and Greetings,
David
... View more