Schema For JSON File Collection Plug-in Mapper File

See how to set up a schema for a JSON file collection plug-in mapper file for Oracle Database Security Central.

In the following example, you can see how to set up a mapper schema:

Example 4 JSON file collection plug-in Mapper Schema

<?xml version="1.0"?>

<!--
 Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.

-->

<xsd:schema xmlns:xsd="http://foobar.example.org/2001/XMLSchema">
<xsd:include schemaLocation="ezCollectorTemplate_schema.xsd"/>

<!-- XML Document Structure-->
<xsd:element name="AVJSONCollectorTemplate" >
	<xsd:complexType>
		<xsd:all>
			<xsd:element name="HeaderInfo"  minOccurs="0" maxOccurs="1">
				<xsd:complexType>
					<xsd:all>
						<!-- StartTag tag contains Root element of XML Audit data file-->
						<xsd:element name="StartTag" type="xsd:string" minOccurs="0" maxOccurs="1"/>
					</xsd:all>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="RecordInfo"  minOccurs="1" maxOccurs="1">
				<xsd:complexType>
					<xsd:all>
						<!-- start tag of xml audit record in XML audit file-->
						<xsd:element name="StartTag" type="xsd:string" minOccurs="1" maxOccurs="1"/>
					</xsd:all>
				</xsd:complexType>
			</xsd:element>
			<!-- Secured Target to AV server fields Mapping for Core, Large, Extension fields and Marker-->
			<xsd:element name="FieldMappingInfo" type="FieldMappingInfoType" minOccurs="1" maxOccurs="1"/>
			<!-- Event Filter. This is optional. If it is not used, all the audit events will be collected-->
			<xsd:element name="EventFilter" type="EventFilterType" minOccurs="0" maxOccurs="1"/>
		</xsd:all>
		<!-- Secured Target Type-->
		<xsd:attribute name="securedTargetType" type="xsd:string" use="required"/>
		<!-- Max Secured Target version supported by the template-->
		<xsd:attribute name="maxSecuredTargetVersion" type="xsd:string" use="required"/>
		<!-- Min Secured Target version supported by the template-->
		<xsd:attribute name="minSecuredTargetVersion" type="xsd:string"/>
		<!-- Template file version-->
		<xsd:attribute name="version" type="xsd:string" use="required"/>
	</xsd:complexType>
</xsd:element>
</xsd:schema>