-
Notifications
You must be signed in to change notification settings - Fork 100
file_completed_action delete not working for gzip files #256
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
Comments
@hkelly when you delete the uncompressed file, do you also use the * shell expansion or point to a single file? |
When I delete the files myself, from the shell, either explicitly or by wildcard, the files are deleted. I updated logstash-input-file 4.1.11 to 4.1.14 but I get the same result in logstash. Is there a log file I can generate for more clues? |
I've tried with this:
And gzipped files are correctly deleted. Tried both version 7.4.2 Probably the the user you use to run Logstash is different from the user you used to modify files in the path |
|
I suspect that
logstash-input-file/lib/filewatch/watched_file.rb Lines 18 to 19 in 42e2ef2
|
I ran into this issue too. Setting logstash to debug output showed this: Once I did as the message said, the file was deleted and the information appeared in the log. The file input documentation: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-file_completed_action, suggests that both are necessary, but doesn't say it outright. |
I didn't get a reply on the forum so I'm posting here.
When I read .gz log files, the files are not being deleted after logstash processing. When I read an uncompressed file it seems to delete correctly.
I can create and delete files in the folder so I don't see how it could be a permission issue. I don't see any errors in the logs related to a failed delete attempt.
The text was updated successfully, but these errors were encountered: