Getting Data In

How does a Splunk forwarder read a file?

skoelpin
SplunkTrust
SplunkTrust

We are constantly writing to a file and cannot have the file open as it's being written to.

What permissions does a Splunk forwarder need to forward data?

Does a Splunk forwarder "open" the file to read its contents?

0 Karma
1 Solution

ddrillic
Ultra Champion

On Linux, it needs the read permission. The following explains it - Permissions on /var/log

View solution in original post

0 Karma

inventsekar
SplunkTrust
SplunkTrust

How Splunk Enteprise monitors nonwritable Windows files
Windows can prevent Splunk from reading open files. If you need to read files while they are being written to, you can use the monitorNoHandle input.

Why use MonitorNoHandle?
This Windows-only input lets you read files on Windows systems as Windows writes to them. It does this by using a kernel-mode filter driver to capture raw data as it gets written to the file. Use this input stanza on files which get locked open for writing. You can use this input stanza on a file which the system locks open for writing, such as the Windows DNS server log file.

Note: MonitorNoHandle only works on Windows Vista or Windows Server 2008 and later operating systems. You can only monitor single files with MonitorNoHandle. You can not monitor directories. If a file you choose to monitor already exists, Splunk does not index its current contents, only new information that comes into the file as it gets written to.

from - http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/Monitorfilesanddirectories

ddrillic
Ultra Champion

On Linux, it needs the read permission. The following explains it - Permissions on /var/log

0 Karma

skoelpin
SplunkTrust
SplunkTrust

What about a Windows server?

0 Karma

somesoni2
Revered Legend

Same. Read permission

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...