Getting Data In

Lock files on Windows server

skibum
Engager

Does Splunk lock the log file while we’re reading it? This would be on my Windows server IIS and Exchange.

Tags (2)
1 Solution

Ledio_Ago
Splunk Employee
Splunk Employee

Tailing uses CreateFile with these flags:

FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE

http://msdn.microsoft.com/en-us/library/aa363858%28VS.85%29.aspx

There is no problem for another process to be writing to the file while Splunk is reading the same file.

View solution in original post

Ledio_Ago
Splunk Employee
Splunk Employee

Tailing uses CreateFile with these flags:

FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE

http://msdn.microsoft.com/en-us/library/aa363858%28VS.85%29.aspx

There is no problem for another process to be writing to the file while Splunk is reading the same file.

jrodman
Splunk Employee
Splunk Employee

Note that if another program opens the file without the FILE_SHARE_READ flag, then either splunk will not be able to open the file, or the other program will not be able to open it if Splunk already has it open.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

No it does not.

Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

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 ...