Some log messages got processed twice by nxlog when the log file is rotated

Tags:

#1 Jerry

Hi,

I setup nxlog to process log file.   Each log file got rotated by application hourly.  The original log file will rename to the same file name postfixed by timestamp, and the log messages will continue written to the new log file with the same name.

I found that some of the log messages logged at the last minute or two of an hour are processed more than one time by NXLOG.  Does anyone have any idea what went wrong?

 

regards,

Jerry

 

Here is my nxlog conf:

<Input in2>
    Module      im_file
    File        "/nfs/home/jerryc/domains/smp_demo/nodes/torvm-core14/log/samp-*_svr2*"
    SavePos     TRUE
    ReadFromLast TRUE
 

#2 adm Nxlog ✓
#1 Jerry
Hi, I setup nxlog to process log file.   Each log file got rotated by application hourly.  The original log file will rename to the same file name postfixed by timestamp, and the log messages will continue written to the new log file with the same name. I found that some of the log messages logged at the last minute or two of an hour are processed more than one time by NXLOG.  Does anyone have any idea what went wrong?   regards, Jerry   Here is my nxlog conf: <Input in2>     Module      im_file     File        "/nfs/home/jerryc/domains/smp_demo/nodes/torvm-core14/log/samp-*_svr2*"     SavePos     TRUE     ReadFromLast TRUE  

Can you create an artificial test case to reproduce the issue?