Create XML Type Parser

  1. In the Parser field, enter the parser name. For example, enter Database Audit Log - XML.

    Provide suitable description to the parser for easy identification.

  2. In the Example Log Content field, paste the contents from a log file that you want to parse, such as the following:



    Based on the example log content, Oracle Log Analytics automatically identifies the list of XML elements that represent the log records.

  3. From Log Entry XML Path menu, select the XML element suitable for the log records of interest. For the above example log content, select /AuditRecord.

    Based on the selection of the XML path, the fields are picked and displayed in the Fields tab.

  4. In the Fields tab, select the field name for each entry of the XML path.

  5. After the fields are selected, go to Parser Test tab to view the match status.



  6. Click Save to save the new parser that you just created.

To abort creating a XML type parser and to switch to creating a parser of regex type, under Type, select Regex.