-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filestream input locks files in Windows #29113
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
#29181) Closes #29113 (cherry picked from commit 24d6bbd) Co-authored-by: Noémi Ványi <[email protected]>
#29182) Closes #29113 (cherry picked from commit 24d6bbd) Co-authored-by: Noémi Ványi <[email protected]>
#29183) Closes #29113 (cherry picked from commit 24d6bbd) Co-authored-by: Noémi Ványi <[email protected]>
Hi @kvch Build details: We had below observations:
We were able to move, rename and delete both locked_file.log and
We were able to move, rename and delete both locked_file.log and
We were able to move, rename and delete both locked_file.log and Hence, this issue is not reproducible now. For reference we have used below Please let us know if this is the required result and let us know if we are missing anything. Thanks!! |
FYI @jlind23 |
…c#29180) (elastic#29181) Closes elastic#29113 (cherry picked from commit 4ed9211) Co-authored-by: Noémi Ványi <[email protected]>
When using the Filestream input in Windows, Filebeat locks the files it's monitoring and prevents other processes from renaming or moving the files.
This has been reproduced in Windows Server 2016, Windows 10 Enterprise and in Windows 10 Home environment.
Error in Windows Server 2016:
Error in Windows 10 Home:
This issue does not reproduce in MacOS.
And also does not happen with the Log input.
Case 1: Commenting out the close inactive settings for both inputs
Settings:
Results:
this_file_is_not_locked
can be renamed/deleted/moved any time since the moment Filebeat is started.this_file_is_locked
cannot be renamed/deleted/moved since the moment Filebeat is started.Case 2: Setting close inactive settings to 1min
Settings:
Results:
this_file_is_not_locked
can be renamed/deleted/moved any time since the moment Filebeat is started.this_file_is_locked
cannot be renamed/deleted/moved for about 1m since the moment Filebeat is started. After 1 min the file can be renamed/deleted/moved.Case 3: Commenting out all the close/clean settings
Settings:
Results:
The file
this_file_is_not_locked
can be renamed/deleted/moved any time since the moment Filebeat is started.The file
this_file_is_locked
cannot be renamed/deleted/moved for about 1m since the moment Filebeat is started.Logs from each scenario:
filebeat_case_1.log
filebeat_case_2.log
filebeat_case_3.log
The text was updated successfully, but these errors were encountered: