Logwatch on Windows Scheduled Tasks log
-
I'm trying to watch the log of Windows Scheduled Task.
The file to watch is c:\Windows\Tasks\SchedLgU.txt
The (very basic) parser file I use is
Begin file ----------
<parser>
<file>c:\Windows\Tasks\SchedLgU.txt</file>
<rules>
<rule>
<match>ERROR</match>
<event>100002</event>
</rule>
</rules>
</parser>
End File -----------Agent version is: 1.0.13
Operating system is: Windows 2003 server R2I started the agenti in debug mode (level 9) and I cannot see anything happening.
-
Try to enable tracing on parser level by replacing <parser> with <parser trace="9">.
Best regards,
Victor -
I enabled parser tracing; I manually edited the file; The result follows.
Begin of the file ------
This line in manually added with an ERROR
This is another line with an ERROR
ERROR lineEnd of file-------
Standard output begin------
....
<Here first line was added>
[10-Apr-2012 19:17:11] LogParser: new data avialable in file "c:\Windows\Tasks\SchedLgU.txt"
...
<Here second line was added
[10-Apr-2012 19:17:31] LogParser: new data avialable in file "c:\Windows\Tasks\SchedLgU.txt"
[10-Apr-2012 19:17:31] Match line: "
[10-Apr-2012 19:17:31] checking rule 1 ""
[10-Apr-2012 19:17:31] rule has no context
[10-Apr-2012 19:17:31] matching against regexp ERROR
[10-Apr-2012 19:17:31] no match
[10-Apr-2012 19:17:31] Processing stopped at end of rules list; result = false
....
<Here third line was added. Notice that \n is present at the end of the line>
[10-Apr-2012 19:17:46] LogParser: new data avialable in file "c:\Windows\Tasks\chedLgU.txt"
[10-Apr-2012 19:17:46] Match line: "
[10-Apr-2012 19:17:46] checking rule 1 ""
[10-Apr-2012 19:17:46] rule has no context
[10-Apr-2012 19:17:46] matching against regexp ERROR
[10-Apr-2012 19:17:46] no match
[10-Apr-2012 19:17:46] Processing stopped at end of rules list; result = false
[10-Apr-2012 19:17:46] Match line: ""
[10-Apr-2012 19:17:46] checking rule 1 ""
[10-Apr-2012 19:17:46] rule has no context
[10-Apr-2012 19:17:46] matching against regexp ERROR
[10-Apr-2012 19:17:46] no match
[10-Apr-2012 19:17:46] Processing stopped at end of rules list; result = false
....
Standard output end ----Agent versione: 1.1.10
Operating system: Windows Small Business Server SP2 -
Looks like bug in agent to me. Can you please post here or send to [email protected] your log file?
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