JSON File Collection Plug-ins

Learn how to use Oracle DBSecCentral JSON file collection plug-ins to collect audit data from a JSON file type of trail.

JSON file collection plug-ins support collection of audit data from an JSON file type of trail. All these JSON audit files must be present in single directory. You can specify details of the JSON audit data in the mapper file.

Related Topics

Requirements for JSON File Collection Plug-ins

To use JSON collection plug-ins for reading audit trails from JSON files, your data must meet Oracle Database Security Central requirements.

You can use collection plug-ins for reading audit trails from JSON audit record files if the JSON files meet the requirements for collection.

JSON File Audit Record File Requirements for Oracle Database Security Central

Example Audit Trail for a JSON File Collection Plug-in

This example audit trail for a JSON file collection plug-in shows the details of a JSON file collection plug-in.

This example file is used in other locations to demonstrate the creation and structure of a sample mapper file for the creation and structure of a sample mapper file for a JSON file collection plug-in, in the Oracle Database Security Central documentation.

The following table lists the audit record structure and mappings to Oracle Audit Vault Server fields for the hypothetical target type, JSONSOURCE, which generates and stores audit data in JSON audit files.

Table 3 Audit Data Fields in JSON Audit Records and Mappings

Target Field Audit Vault Server Field Map to Field Type
USER_ID UserName core field
OS_USER_ID OSUserName core field
ACTION CommandClass core field
STATUS EventStatus core field
EVENT_TIME EventTimeUTC core field
OBJ_NAME TargetObject core field
OBJ_CREATOR TargetOwner core field
USER_HOST ClientHostName core field
SQL_TEXT CommandText core field
SQL_BIND CommandParam core field
TERMINAL TerminalName extension field
DB_ID extension field extension field
INSTANCE extension field extension field
PROCESS extension field extension field
SESSION_ID marker field marker field
ENTRY_ID marker field marker field

Example 5 Sample JSON Audit Record

{
   "ITEMS":[
      {
         "SESSION_ID":123,
         "AUDIT_TYPE":1,
         "USER_ID":"scott",
         "OS_USER_ID":"usr1",
         "ACTION":"select",
         "STATUS":0,
         "EVENT_TIME":"2020-11-28 12:23:59.166",
         "OBJ_NAME":"emp",
         "OBJ_CREATOR":"scott",
         "TERMINAL":"t1",
         "DB_ID":136,
         "ENTRY_ID":1
      },
      {
         "SESSION_ID":123,
         "AUDIT_TYPE":1,
         "USER_ID":"scott",
         "OS_USER_ID":"usr1",
         "ACTION":"delete",
         "STATUS":0,
         "EVENT_TIME":"2020-11-28 12:24:22.177",
         "OBJ_NAME":"emp",
         "OBJ_CREATOR":"scott",
         "TERMINAL":"t1",
         "DB_ID":136,
         "ENTRY_ID":2
      }
   ]
}

Creating the JSON File Audit Collection Mapper File

To create a JSON file collection plug-in mapper file, you must describe the collection plug-in mappings in this mapper file in accordance with Oracle Database Security Central standards.

You must describe the collection plug-in mappings in this mapper file as follows:

Standards for Collection Plug-in Mappings in Mapper Files for Oracle Database Security Central

See Also: