Activator provides tools for generating audit logs of the changes that users perform on objects in the UI. This includes changes implemented when creating objects (using the add wizards) and when modifying objects (working in modification pages). The resulting logs show which user made changes, at what time and date the change was made, and provide details of the change.
Audit information is collected for changes to the following objects:
The information that Activator audits is controlled by the audit_config.xml
file located in <
install_directory>/Interchange/conf
.
By default, auditing is disabled on system startup, however the CSV audit file, <machine_name>_cn_audit.csv
, file is created for each node in the directory <
install_directory>/Interchange/logs
. When you activate object change auditing, Activator generates the audit information to this file.
Additionally, by activating an option in the audit_config.xml
file, you can generate audit logs to <machine_name>_cn_audit.xml
. This XML formatted file provides raw trace data that you can use for additional fine tuning of information, which you can then convert to the CSV format. When activated, the XML version of this log file is also located in the <
install_directory>/Interchange/logs
directory.
To activate logging to the XML file, see Activate logging to XML file.
When both output types are enabled, the logger formats and outputs information both CSV and XML files. You must enable at least one of the output types to enable auditing.
For each object type, audit log files collect the following information:
To activate object-change auditing:
<Interchange_install_directory>/conf
.audit_config.xml
in a text editor.By default, when object change auditing is activated, Activator logs user change events to <
install_directory>\logs\<machine_name>_cn_audit.csv
. To additionally activate logging to <
install_directory>\logs\<machine_name>_cn_audit.csv
:
<
install_directory>/conf
.audit_config.xml
in a text editor.<!--<AuditedTransactionHandler class="com.cyclonecommerce.persistence.audit.LogXmlTransactionHandler"/>-->
Axway recommends that the default settings only be modified by an administrator or with the aid of an Axway services resource. Changes made to the audit configuration can have an impact on the type of objects being logged, and can possibly cause the auditing process to not work properly.
To control the information that is generated to the output files, you can modify the attributes of the audit_config.xml
file.
By default, the configuration is set to audit specific partner-related configuration changes made in the UI.
The audit_config.xml
configuration file controls which objects are logged, based on the following class settings:
<!-- Included Classes -->
<IncludedClasses regex=".*ExchangePoint"/>
<IncludedClasses regex=".*PropertyFieldValue"/>
<IncludedClasses regex="com.cyclonecommerce.collaboration.*Party"/>
<IncludedClasses regex="com.cyclonecommerce.collaboration.messagingids.*MessagingId"/>
<!-- Excluded Classes -->
<ExcludedClasses regex="com.cyclonecommerce.cachet.administration.*"/>
<ExcludedClasses regex="com.cyclonecommerce.cachet.security.session.*"/>
<ExcludedClasses regex="com.cyclonecommerce.alerts.*"/>
<ExcludedClasses regex="com.cyclonecommerce.tradingengine.alerts.*"/>
<ExcludedClasses regex="com.cyclonecommerce.collaboration.alerts.*"/>
Removing any of the above settings affects the type of objects that are logged.
To log all objects, remove the comment markers from the following line:
<!--<IncludedClasses regex=".*"/>-->
Enabling the above setting, and commenting out the “Included/Excluded Classes
” settings, results in the capture of all activity persisted in the database, and enables logging of activities in the default CSV log file.
Note | Only the partner-specific objects are formatted properly in the log file, based on configuration file settings. All other objects are logged without formatting, and in most cases will derive names from database naming instead of UI display naming. |