Getting Data In

Why can't a logfile that Splunk is monitoring be accessed, preventing a script from writing to the file and log messages are getting lost?

schose
Builder

Hi all,

I'm logging the output of scheduled tasks to a central CIFS location. On the fileserver hosting the CIFS, I installed the splunk forwarder.

inputs.conf

[monitor://D:\rebootlogs]
disabled = false
host_regex = reboot-(.+)\.log$
index = temp
sourcetype = rebootlogs

When splunkforwarder is running, the files are getting indexed. Unfortunately, from time to time it happens that the script cannot write to the logfile and log messages are getting lost! I'm using "add-content" cmdlet in the powershell script.

see screenshot:

alt text

Which setting should be tweaked to avoid access violations and log messages to get lost? Installing the splunkforwarder on each client and index it locally is not intended.

0 Karma

schose
Builder

Hi,

No, the script should not be scheduled by Splunk. It's running "on demand" and is scheduled by a 3rd party solution. I just want to display the output in splunk

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...