Create XML Type Parser
-
In the Parser field, enter the parser name. For example, enter
Database Audit Log - XML
.Provide suitable description to the parser for easy identification.
-
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.
-
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.
-
In the Fields tab, select the field name for each entry of the XML path.
-
After the fields are selected, go to Parser Test tab to view the match status.
-
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.