Getting Data In

Where on a Windows machine should I store logs generated from custom scripts for Splunk Universal Forwarder to forward?

landen99
Motivator

Running a log-generating script locally on a Windows machine with a Splunk UF, I am looking for best practices for where to store the script log files. I imagine that there may be permissions issues with trying to store them under a user account or in the Windows directory. Splunk will run the custom script either periodically or constantly.

0 Karma
1 Solution

Jeremiah
Motivator

If you are using Splunk to run the script, you should store the scripts in a Splunk app:

http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ScriptedInputsIntro

Place scripts in the bin directory of your app:

$SPLUNK_HOME/etc/apps/<appname>/bin/

If you have Splunk run the scripts as inputs, you don't need to generate log files. Splunk will read the script output and forward it to your indexers.

View solution in original post

0 Karma

Jeremiah
Motivator

If you are using Splunk to run the script, you should store the scripts in a Splunk app:

http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/ScriptedInputsIntro

Place scripts in the bin directory of your app:

$SPLUNK_HOME/etc/apps/<appname>/bin/

If you have Splunk run the scripts as inputs, you don't need to generate log files. Splunk will read the script output and forward it to your indexers.

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...