Thanks for adding the explanation of the registry.
I don't think there is any need to rewrite
offset in cases where the number of files to be read is newly increased (i.e. logs in the format yyyy-mm-dd.log, etc.), because the same file name will not change the reading position.
In the case where the file name is changed due to log rotation (i.e., the log for the day is today.log, and the next day it is renamed to yyyy-mm-dd.log, etc.), it is not necessary to change the reading position of today.log. In this case, you need to change the reading position, so you need to change the
FileStateOS. In this case, you need to change the
However, I don't know how to set these.
In many operations, it only says to delete the registry if you want to re-read a log that has already been read. The only thing it says is that
I think it is a common case to rename files for log rotation, etc. What are the common means of doing this?