CentraSite Documentation : CentraSite Administrator’s Guide : Logging : Configuring Logs : Configuring Log Settings from the Command Line : Creating a Configuration File to Define Log Setting : Define Log Settings
Define Log Settings
The com.centrasite.config.log.setting property represents the LogSetting attribute. This attribute defines specific information about the performance of the registry object.
In this section, you create log settings that will be used within the log unit definition.
Within the LogUnit element, create LogSetting attributes say, Success, Failure etc.
You can configure the LogUnit element with one of the appropriate LogSetting attributes.
Log Unit
Description
Policy_Log
Log Setting
Logs
Success
Policies that have resulted in success alert.
Info
Policies that have resulted in informational alert.
Warning
Policies that have resulted in warning alert
Failure
Policies that have resulted in failure alert.
For more information, see Policy Log
Approval_Log
Log Setting
Logs
Log_Approval
Approval policies that have resulted in Approved state.
For more information, see Approval History Log.
Audit_Log
Log Setting
Logs
Enable_Audit
All activities (such as creation, modified, and so on) performed on a particular asset.
For more information, see Audit Logs.
Runtime_Event_Log
Log Setting
Logs
Policy_Violation_Events
Monitors and tracks all the policy violation events.
Transaction_Events
Monitors and tracks all the transaction events.
Monitoring_Events
Monitors and tracks all the monitoring events.
Lifecycle_Events
Monitors and tracks all the lifecycle events.
For more information, see Run-Time Event Logs.
Runtime_Performance_Log
Log Setting
Logs
Log_Performance_Events
Monitors and tracks all the performance events
For more information, see Run-Time Performance Logs.
This LogSetting attribute should look similar to this:
<LogUnit name=Policy_Log>
<LogSetting>Success</LogSetting>
<LogSetting>Failure</LogSetting>
</LogUnit>
The final config.xml should look similar to this:
<LogSettings xmlns="http://namespaces.centrasite.com/configurations/logs">
<LogUnit name=Policy_Log>
<LogSetting>Success</LogSetting>
</LogUnit>
<LogUnit name=Approval_Log>
<LogSetting>Log_Approval</LogSetting>
</LogUnit>
<LogUnit name=Audit_Log>
<LogSetting>Enable_Audit</LogSetting>
</LogUnit>
<LogUnit name=Runtime_Event_Log>
<LogSetting>Transaction_Events</LogSetting>
<LogSetting>Policy_Violation_Events</LogSetting>
<LogSetting>Monitoring_Events</LogSetting>
<LogSetting>Lifecycle_Events</LogSetting>
</LogUnit>
<LogUnit name=Runtime_Performance_Log>
<LogSetting>Log_Performance_Events</LogSetting>
</LogUnit>
</LogSettings>
If you do not specify a log setting value or if you specify an incorrect log unit or log setting value (for example, Log Approval), the command execution fails and a warning message is issued.
(this is correct)
<LogUnit name=Policy_Log>
<LogSetting>Success</LogSetting>
</LogUnit>
(this is incorrect due to missing LogSetting element)
<LogUnit name=Policy_Log>
</LogUnit>
(this is incorrect due to invalid LogSetting value)
<LogUnit name=Policy_Log>
<LogSetting>Success_and_Failure</LogSetting>
</LogUnit>
Note:  
Make sure you copy this file somewhere within the file system of the machine where CentraSite is installed.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback