NetXMS Support Forum

English Support => General Support => Topic started by: Nikk on January 11, 2016, 05:35:06 PM

Title: Logparser
Post by: Nikk on January 11, 2016, 05:35:06 PM
Hi,

We are trying to monitor backup log file using logwatch subagent. From test files everything works fine, but when we finally try the actual file, we receive this message:
QuoteLogParser: file size for fstat(3) is greater then for
stat(C:\Program Files\Cobian Backup 11\Logs\log.txt), assume file rename

The parser is very simple, just:
Quote<parser>
    <file>C:\Program Files\Cobian Backup 11\Logs\log.txt</file>
    <rules>
      <rule>
            <match>ERR (20.*)</match>
            <event params="1">100083</event>
        </rule>
    </rules>
</parser>

What could be the problem?

I upgraded server and agent to the latest version.

Best regards,
Nikk
Title: Re: Logparser
Post by: Victor Kirhenshtein on January 14, 2016, 10:18:00 AM
Hi,

such message is usual when log rotation occurs. To detect log rotation agent compares size returned by stat using file name, and size returned for currently open file descriptior. If first is smaller, it assumes that file was rotated, re-open it, and start reading from the beginning. How often you got this message and is this file actually rotated?

Best regards,
Victor
Title: Re: Logparser
Post by: dersonik on October 17, 2016, 01:05:48 PM
Do you find the solution for that? I have problem with log file encoding in cobian. It is UCS-2 LE BOM (notepad ++ showing) and the parser not working