You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
identifier_from_path for some files fails to get file id (value is unknown) because CreateFileW returns ERROR_FILE_NOT_FOUND and GetFileInformationByHandle returns ERROR_INVALID_HANDLE after that.
[WARN ][filewatch.tailmode.processor] >>> Rotation In Progress - inode change detected and original content is not fully read, file is closed and path points to new content { ... @filename='Log_2019-02-27_2019-02-27' ... @sincedb_key='unknown 0 0'>"}
[WARN ][filewatch.tailmode.processor] >>> Rotation In Progress - inode change detected and original content is not fully read, file is closed and path points to new content { ... @filename='Log_2019-02-28_2019-02-28' ... @sincedb_key='unknown 0 0'>"}
[WARN ][filewatch.tailmode.processor] >>> Rotation In Progress - inode change detected and original content is not fully read, file is closed and path points to new content { ... @filename='Log_2019-02-29_2019-02-29' ... @sincedb_key='unknown 0 0'>"}
Some files are mapped to same id unknown and skipped.
I’m not so familiar with Ruby FFI, but it seems there must be a zero-terminated UTF-16LE string here:
@dscheg
Nice debugging. Thanks.
But this does not happen to all paths, only some. At this time I don't know what the difference is between the ones that work and the ones that don't.
identifier_from_path
for some files fails to get file id (value isunknown
) becauseCreateFileW
returnsERROR_FILE_NOT_FOUND
andGetFileInformationByHandle
returnsERROR_INVALID_HANDLE
after that.Some files are mapped to same id
unknown
and skipped.I’m not so familiar with Ruby FFI, but it seems there must be a zero-terminated UTF-16LE string here:
logstash-input-file/lib/filewatch/winhelper.rb
Lines 179 to 185 in 95ef6f3
Concatenating with
0.chr
fixes the problem.Same issues closed without solution:
https://discuss.elastic.co/t/logstash-does-not-start-process-files/164228
https://discuss.elastic.co/t/logstash-cant-read-some-files/143847
https://discuss.elastic.co/t/logstash-sincedb-unknown/155972
The text was updated successfully, but these errors were encountered: