Logparser
-
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:
LogParser: file size for fstat(3) is greater then for
stat(C:\Program Files\Cobian Backup 11\Logs\log.txt), assume file renameThe parser is very simple, just:
<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 -
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 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login