I got this huge error after changing the IP address of the monitoring machine to 192.168.4.144 (Splunk Server):
[] Install Splunk Universal Forwarder on localhost
[] indexer server: 192.168.4.144:9997
[*] checking for previous installations of splunk>...
[!] install directory already exists. continuing to congure ..
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\outputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:78 char:1
+ echo "[tcpout]" > $outputsconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\outputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:79 char:1
+ echo "defaultGroup = default-autolb-group" >> $outputsconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\outputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:80 char:1
+ echo "" >> $outputsconf
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\outputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:81 char:1
+ echo "[tcpout:default-autolb-group]" >> $outputsconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:195 char:3
+ echo "`n" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:194 char:3
+ echo "_meta = $dims" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:195 char:3
+ echo "`n" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:215 char:5
+ echo "[monitor://$log_source]" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:216 char:5
+ echo "sourcetype = $log_sourcetype" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:218 char:5
+ echo " r n" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:210 char:5
+ echo "[WinEventLog://$log_source]" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:211 char:5
+ echo "$eventlog_options" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:212 char:5
+ echo " r n" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:210 char:5
+ echo "[WinEventLog://$log_source]" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:210 char:5
+ echo "[WinEventLog://$log_source]" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:211 char:5
+ echo "$eventlog_options" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
out-file : Could not find a part of the path 'C:\Program Files
(x86)\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\inputs.conf'.
At C:\Windows\system32\install_uf_script.ps1:212 char:5
+ echo " r n" >> $inputconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
[*] Restarting splunk> universal fowarder
& : The term 'C:\Program Files (x86)\SplunkUniversalForwarder\bin\splunk.exe' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Windows\system32\install_uf_script.ps1:227 char:3
+ & "$splunkexe" restart
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program File...\bin\splunk.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
[!] splunk process not running!
[!] check to make sure installation was successful.
What should I do further, please suggest...
... View more