CSV File Collection Plug-ins

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

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

Requirements for CSV File Collection Plug-ins

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

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

CSV File Audit Record File Requirements for Oracle Database Security Central

Example Audit Trail for a CSV File Collection Plug-in

This example audit trail for a CSV file collection plug-in shows the details of a CSV 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 CSV 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, CSVSOURCE, which generates and stores audit data in CSV audit files.

Table 4 Audit Data Fields in CSV Audit Records and Mappings

Target Field Audit Vault Server Field Map to Field Type
EVENT_NAME CommandClass core field
EVENT_TIME EventTimeUTC core field
CLIENT_IP ClientIP core field
USER_ID UserName core field
TARGET_OBJECT TargetObject core field
EVENT_STATUS EventStatus core field
SESSION_ID marker field marker field
ENTRY_ID marker field marker field
COMMAND_TEXT CommandText large field
COMMAND_PARAM CommandParam large field
SESSION_ID extension field extension field
ENTRY_ID extension field extension field

Example 6 Sample CSV Audit Record

5678,createUser,2020-10-01T16:11:23.661+0530,127.0.0.1,1234,admin,user1,0,0,not applicable,1234,"insert into foo.bar","foobar",111
5679,dropUser,2020-10-02T16:11:23.661+0530,127.0.0.1,1234,admin,user2,0,0,not applicable,1234,"delete from foo.bar","foobar",222
5680,createCollection,2020-10-03T16:11:23.661+0530,127.0.0.1,1234,admin,collection1,100,18,authentication failed,1234,"insert into foo.bar","foobar",333
5681,dropCollection,2020-10-04T16:11:23.661+0530,127.0.0.1,1234,admin,collection2,200,13,not authorized to perform operation,1234,"delete from foo.bar","foobar",444
Below is the index corresponding to each field:
EVENT_ID field has index 0
EVENT_NAME field has index 1
EVENT_TIME field has index 2
CLIENT_IP field has index 3
CLIENT_PORT field has index 4
USER_ID field has index 5
TARGET_OBJECT field has index 6
EVENT_STATUS field has index 7
ERROR_ID field has index 8
ERROR_MESSAGE field index 9
SESSION_ID field has index 10
COMMAND_TEXT field has index 11
COMMAND_PARAM field has index 12
ENTRY_ID field has index 13

Creating the CSV File Audit Collection Mapper File

To create a CSV 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: