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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...