Logging Concepts and Configuration
This topic provides an introduction to Anzo logging concepts, an overview of the Logging user interface, and information about the type of logging that is enabled by default. It also gives a high-level overview about turning on additional logging, adjusting the level of information that is logged, and reviewing log files.
Logging Concepts
In order to give users granular control and flexibility over the type and breadth of information that is captured, the concept of Log Packages is integral to logging in Anzo. A Log Package is a listener for events that are related to a particular Semantic Service or component, such as core system, LDAP, Anzo Unstructured, or AnzoGraph events. To give users flexibility over the depth of information that is logged, each Log Package can be configured to capture events at a certain Log Levels, from all events to fatal events only.
Default Logging Configuration
Logging is managed in the Administration application. To view the Log Packages that are enabled for your server, expand the Monitoring & Diagnostics menu in the Administration application and click Logging. Then click the Log Levels tab to show the enabled Log Packages and their Log Level configuration. For example, the image below shows the default configuration for a new installation:
Default Log Packages
The table below describes Log Packages that are enabled by default as well as their default Log Level. Log Levels are defined in Log Level Definitions below.
Package | Level | Description |
---|---|---|
AccessAudit | Info | Listener for access audit events such as user login attempts. |
ActivityAudit | Info | Listener for activity audit events. |
AuditLog | Error | Logger for audit events when the appropriate packages are enabled. For more information, see Enabling the Audit Logs. |
com.cambridgesemantics | Error | Like the org.openanzo package, this base package listens for core system events. Changing the Log Level of this package affects logs across Anzo components and services. |
InstallUpdateLog | Info | Listener for installation and upgrade events. Captures information about bundle imports and updates. |
org.apache.directory | Off | Listener for events related to the underlying internal LDAP server. Do not modify the Log Level for this package. |
org.openanzo | Error | Like the com.cambridgesemantics package, this base package listens for core system events. Changing the Log Level of this package affects logs across Anzo components and services. |
org.openanzo.client.registry.RegistryManifestLoader | Info | Listener for installation and upgrade events. Captures information about bundle imports and updates. |
org.openanzo.combus.endpoint.BaseServiceListener | Error | Core server listener for requests sent from clients to the server. |
org.openanzo.osgi.bootstrap.BootstrapActivator | Info | Listener for installation and upgrade events. Captures information about bundle imports and updates. |
org.openanzo.services.PublicLog | Off | Listener for internal Anzo events. Do not modify the Log Level for this package. |
org.pac4j.http.client.direct.DirectBasicAuthClient | Off | Low-level listener for user login events. |
org.pac4j.http.client.direct.HeaderClient | Off | Low-level listener for user login events. |
QueryAudit | Info | Listener for query audit events. |
SystemAudit | Info | Listener for system audit events such as changes to bundle properties. |
TimingStack | Error | Listener for events related to internal system journal queries. |
UserAudit | Info | Listener for user administration related events, such as changes to roles. |
Adding Log Packages
For guidance on adding the recommended Log Packages, see Adding the Recommended Log Packages.
To enable additional Log Packages, click the Edit button on the Log Levels screen.
Then click Add Package at the bottom of the screen.
Clicking the Select field opens the package drop-down list. You can browse through the options, or you can start typing a keyword to search for a package. Click a package to add it to the list of packages on the Edit Log Packages screen. Adjust the Log Level as needed and then click Save to save the change. See Log Level Definitions below for more information about Log Levels.
Log Level Definitions
This section defines the Log Levels that are available to apply to a Log Package:
- Off: Turns logging off for the Log Package.
- Debug: Logs fine-grained error messages that are intended to help debug a problem with an application or the server.
- Trace: Logs finer-grained error information than Debug.
- Info: The highest level of logging. The Log Package captures all events or queries.
- Warn: Logs information about potentially problematic situations.
- Error: Logs errors that usually allow the application to continue running.
- Fatal: Logs severe errors that prevent the application from running.
To change the Log Level for a package, click the Log Level field for the Log Package that you want to change and select a level from the drop-down list. Click Save when you are finished making changes.