Administer > Business auditing
Configure event types and commands for business auditing
- Edit...
WC_EAR/xml/config/BusinessAuditDataCapture.xml
- The XML file lists the event types which may be associated with the audit, the parameters to exclude and on which to search, and the commands for a business audit. Edit the file...
- To specify whether a listed event type should be audited, under the <EventType> section, ensure that the audit flag for the event type is set to enabled=true to audit the event type, and enabled=false if you do not want to audit it.
- To add a new event type to be audited, refer to the <EventType> section and add an event type to be audited. You can simply copy and paste one of the existing lines under <EventType> and use it as a base for the custom event type. Ensure that you have a value for the command and audit. Optionally, you can specify the following values:
- Whether this is the default configuration if the command is not associated with an event. The default is false.
- The factory class to use to generate the business audit event. The default is...
com.ibm.commerce.event.businessaudit.BusinessAuditCommandExecutionEventFactory
- To remove a command from the list, under the <AuditCommands> section, delete the line containing this command.
- To audit a listed command, under the <AuditCommands> section, set...
enabled=true
- To add a new command to be audited, refer to the <AuditCommands> section and add a command to be audited.
You can simply copy and paste one of the existing lines under <AuditCommands> and use it as a base for the custom command. Ensure that you have a value for the command and audit. Optionally, you can specify an event type. For example...
<AuditCommand eventType="CAT" command="com.ibm.commerce.catalog.commands.CategoryDisplayCmd" audit="true"/>
- To remove a command from the list, under the <AuditCommands> section, delete the line containing this command.
- Save the XML file.