Messsage Log was truncated, restarting from beginning
Hi,
I'm using nxlog ce latest version with centos 7 with latest patches to read files from a directory that is a cifs mount to a windows server. Logs are in w3c format.
However from times to times, I'm getting the information in nxlog log file "INFO input file '
Using strace with options -tfp (since debug option of nxlog doesn't give me much information) i get this:
pid 7675] 12:52:58 close(16 <unfinished ...>
[pid 7676] 12:52:58 <... stat resumed> {st_mode=S_IFREG|0400, st_size=144080774, ...}) = 0
[pid 7676] 12:52:58 stat("
My nxlog configuration is this:
User nxlog Group nxlog
LogFile /var/log/nxlog/nxlog.log LogLevel INFO
define DIR
<Exec>
to_syslog_bsd();
</Exec>
Can you understand why nxlog says that file is truncated when it's not?
I think it may be related to the cifs mount and the way it reports inode number, file size and file modification date that makes the NXLog CE think the file was truncated.
I remember there were some fixes to im_file
wrt network shares by I'm not sure what the status of this is in the CE.
You may want to test the NXLog EE as it likely handles this better.