Tags: logstash-plugins/logstash-input-file
Tags
Fix ReadFile handler to consider the value stored in sincedb on plugi… …n restart (#307) Fixes read mode to restart the read from reference stored in sincedb in case the file wasn't completely consumed Update the file pointer of a read mode file to the max between the read bytes or the sincedb reference for the same file. This solves a problem, that when a pipeline is restarted, it's able to recover from the last known reference, without restarting from the beginning, and reprocessing already processed lines. Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Doc: Set version attribute in plugin source file (#308) Update links to long format to pick up version Bump to v4.4.1 Note that we're resetting the version attribute to `current` at the end of the file to avoid carry over to other files. After we resolve formatting and clean up older files, we can remove the reset in the source file.
Only try and set permissions if permissions have changed. (#295) * Only try and set permissions if permissions have changed. This is a workaround for jruby/jruby#6693 - stat is currently reporting incorrect values of `uid` and `gid` on aarch64 linux nodes, and appears to be setting `uid` and `gid` to 0, ie `root` It is highly unlikely that `chown` needs to be called on the file - and even more unlikely that `chown` would succeed anyway - `chmod` typically requires superuser privileges, unless the change of ownerhip is a change of group to another group the user is already a member of. This workaround updates the code to only attempt to call `chown` in the unlikely event that file ownership of the temp file is different from the original file, which should avoid the scenario that is currently occurring due to the above jruby bug. This commit also falls back to a non-atomic write in the event of a failure to write the file atomically.
Fix: occasional sincedb write issue on Windows machines (#283) On Windows servers we occasionally get exceptions `unknown IOException: java.io.IOException: The handle is invalid` when writing to sincedb file which crashes the plugin and somehow messes with the sincedb file which results in old log files being reprocessed causing duplicates. This change eliminates those exceptions.
PreviousNext