All Apps and Add-ons

The splunk app for infrastructure cannot create folders.

rodos
Engager

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)

0 Karma

dagarwal_splunk
Splunk Employee
Splunk Employee

Could you check if you have this directory on your Windows system?
"C:\Program Files\SplunkUniversalForwarder\etc\apps\SplunkUniversalForwarder\local\"

0 Karma

rodos
Engager

Sorry for the long answer. There are no SplunkUniversalForwarder folder in Program Files.
This is a clean system, installing the UF is done for the first time.

0 Karma

dagarwal_splunk
Splunk Employee
Splunk Employee

So, the script didn't install the forwarder before it complained about the path?
Check if "C:\Program Files\SplunkUniversalForwarder" exists. If it does, create the local directory it complained about and try to rerun the script.

You can also setup data collection manually using this doc:
https://docs.splunk.com/Documentation/InfraApp/1.2.3/Admin/ManualInstallWindowsUF

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...