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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...