Kaseya Community

XML log parser

  • Hi, I've created a log parser set whitch doesnt work correct. The first problem I have is: The log file is a .XML file whitch have a structure like this:

    <?xml version="1.0"?>
    <Events>
      <Event>
        <message> the error message</message>
        <severity>Warning type</severity>
        <EventDate>Date</EventDate>
      </Event>
       <Event>
        <message> the error message</message>
        <severity>Warning type</severity>
        <EventDate>Date</EventDate>
      </Event>
    </Events>
    And the following text keeps getting added (the logs)
    <Event>
        <message> the error message</message>
        <severity>Warning type</severity>
        <EventDate>Date</EventDate>
      </Event>
    My parser looks like this:
    - <Event>
      <message>$error$</message> 
      <severity>$type$</severity> 
      <EventDate>$datum$</EventDate> 
      </Event>
    The variables has been defined But because the total log starts with:
    <?xml version="1.0"?>
    <Events>
    and ends with
    </Events>
    I dont get any information. When i delete those words and place it in a .log file the logfile is read out perfectly. But my software program whitch creates the log, only can make it in .xml How can i fix this? ------------- My seccond problem is that the logs whitch are created are placed on the top of the log file. But Kaseya Log parser only reads the bottom of the file. How can i make the log parser to look at the top of the file instead of the bottom? I hope someone can help me, Jort

    Legacy Forum Name: XML log parser,
    Legacy Posted By Username: jortbloo



    [edited by: Brendan Cosgrove at 5:36 PM (GMT -8) on 12-17-2010] .
  • Try using the log parser test tool, there is a link to it in anther thread, but it's on someones elses server...



    http://community.kaseya.com/xsp/f/28/t/6350.aspx

    Legacy Forum Name: Event Sets,
    Legacy Posted By Username: thirteentwenty