I am using Splunk Enterprise 7.2.4 (Trial)
I installed the Splunk app for infrastructure
When I run a script generated by this application on a Windows system, I get strange errors.
out-file : Could not find a part of the path "C:\Program Files\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\loc
al\outputs.conf".
C:\Users\Admin\install_uf_script.ps1:83 знак: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\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\loc
al\outputs.conf".
C:\Users\Admin\install_uf_script.ps1:84 знак:1
+ echo "defaultGroup = default-autolb-group" >> $outputsconf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
Install Location: $ env: programfiles \ SplunkUniversalForwarder
I run the script on Windows 10 1809 Pro (From the administrator)
... View more