Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Logwatch on Windows Scheduled Tasks log

Logwatch on Windows Scheduled Tasks log

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 11.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    ftrotta
    wrote on last edited by
    #1

    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 R2

    I started the agenti in debug mode (level 9) and I cannot see anything happening.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Try to enable tracing on parser level by replacing <parser> with <parser trace="9">.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • F
        F
        ftrotta
        wrote on last edited by
        #3

        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 line

        End 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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Looks like bug in agent to me. Can you please post here or send to [email protected] your log file?

          Best regards,
          Victor

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups