Is it possible to monitor a log file in xml format? RRS feed

  • Question

  • Hi there,

    Is it possbile to monitor a logfile in xml format and check for certain matches? Just like when monitoring entries in a logfile?



    Thursday, October 20, 2011 12:44 PM


  • Yes and now.  XMl will prevent you from putting multiple identical records in a document (each line must be the same format).  But text doesn't and angle brackets are just text.  Delimiters would be necessary as well.

    For what I think you want to do (parse the XML, do intelligent stuff), it wiil be easier to change the way your application logs (use Windows Event Logs and event parameters) than it will be to develop a custom monitor (probe based script monitor that parses the xml, AND, keeps track of where it left off each time it scans the file so you don't get duplicates over and over).


    Microsoft Corporation
    • Proposed as answer by Nicholas Li Monday, October 24, 2011 8:24 AM
    • Marked as answer by Chrisszs Monday, October 24, 2011 2:33 PM
    Thursday, October 20, 2011 4:15 PM

All replies