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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...