Show TOC Start of Content Area

Procedure documentation Logging Changes to PCD Objects  Locate the document in its SAP Library structure

Use

The Admin Traceability feature enables the logging of changes made to objects in the PCD. This includes changes made by the Transport mechanism, by the Generic Creator service (which automates content creation via XML), by content administration editors, as well as any changes made by users.

The following changes to PCD objects are logged:

·        Changes made to existing objects

·        Creation of an object

·        Deletion of an object

·        Renaming of an object

·        Resorting of the child list of an object

·        Redefinition of the target of a delta link

·        Import of a unit

·        Changing of permissions

You can log all PCD objects, or select a specific set of objects to log.

You can also specify a set of paths for logging only objects with matching paths.

This graphic is explained in the accompanying text

Only objects in the PCD data namespace are traced. No personalization changes are traced.

Prerequisites

Before you configure PCD logging properties, you need to adjust, in Visual Administrator, logging debug levels (referred to as Severity), as follows:

...

...

...

       1.      Start the Visual Administrator tool.

More information: Visual Administrator

       2.      Choose the Cluster tab.

       3.      Select the portal server to configure, expand the Services node and select Log Configurator.

       4.      In the Categories tab, choose ROOT CATEGORY This graphic is explained in the accompanying text System This graphic is explained in the accompanying text Changes

       5.      Make sure that the Severity is Info.

       6.      Apply the change.

       7.      In the Locations tab, choose ROOT LOCATION This graphic is explained in the accompanying text com This graphic is explained in the accompanying text sap This graphic is explained in the accompanying text portal This graphic is explained in the accompanying text pcd This graphic is explained in the accompanying text adminTraceability

       8.      Make sure that the Severity is Info.

       9.      Apply the change.

Log File Configuration

You can configure the maximum size of the log file, the maximum number of log files, and the name of the log file. By default, the maximum log file size is 10 MB and the maximum number of log files is 5. When a log file reaches its size limit, a new file is created, up to the maximum number of log files. After the maximum number of log files has been created, the first log file is deleted and replaced by a new one.

You configure the log file in the AS Java – Config Tool, under template This graphic is explained in the accompanying text log configuration This graphic is explained in the accompanying text destinations, using the following fields:

·        Count – the maximum number of log files

·        Limit – the maximum size of each log file, in bytes

·        Pattern – the name of the log file

For information on configuring the log file location, see the Result section.

Procedure

You configure the logging of changes to PCD objects in the Visual Administrator tool, as follows:

...

...

...

...

...

       1.      Start the Visual Administrator tool.

More information: Visual Administrator

       2.      Choose the Global Configuration tab.

       3.      Choose the Server tab.

       4.      Expand the Services node and select com.sap.portal.pcd.gl

The Properties tab is displayed.

To edit the value of a property, select it in the table, and use the Value field at the bottom of the page.

You must choose Update to update your changes.

       5.      To activate logging, set the value of the Pcd.Gl.AdminTraceability.Active property to true.

The default value is false, meaning that logging is stopped.

Note that when activated, the logging may have an impact on performance.

       6.      To specify the object classes to be logged, use the Pcd.Gl.AdminTraceability.IncludedObjectClasses property, as follows:

The default value is *, meaning that all classes are logged.

You can specify one or more object classes to be logged.

You can also specify a class filter by using the * (zero or more) and the ? (zero or one) wildcards.

Use a semicolon (;) to separate between classes or filters.

Class filter examples:

¡        To log all classes that start with com.sap, use com.sap.*

¡        To log all classes that start with com.sap.pcd or com.sap.pcm, use com.sap.pcd.*;com.sap.pcm.*

¡        To log all classes that start with com.sap.pcx, where x stands for any character, use com.sap.pc?.*

       7.      To specify the paths used to log objects, use the property Pcd.Gl.AdminTraceability.IncludedPaths, as follows:

The default value is *, meaning that all paths are logged.

You can specify one or more paths to be logged.

You can also specify a path filter by using the * (zero or more) and the ? (zero or one) wildcards.

Use a semicolon (;) to separate between paths or filters.

This graphic is explained in the accompanying text

User data is located under the portal_content folder. Define the logging path starting from this folder, or below, to ensure more focused logging results.

Path filter examples:

¡        To log all objects under the portal_content folder, use portal_content/*

¡        To log all objects in paths that start with portal_content/test1 or portal_content/test2, use portal_content/test1/*;portal_content/test2/*

¡        To log all objects in paths that start with portal_content/testx, where x stands for any character, use portal_content/test?/*

       8.      Choose the Update button and then the Save Properties icon.

Answer Yes to the confirmation message.

The service is restarted.

Note

You can also set the Admin Traceability properties in the SAP NetWeaver Administrator tool, but a server restart is required for the settings to take effect.

Result

Location of Log File

By default, the logging information is written to the following location:

\usr\sap\<system ID>\<instance ID>\j2ee\cluster\change\log\
<cluster-nodeID>changes#.log

Where # is the sequential number of the file, starting at zero.

You can also specify a custom log file location, as follows:

...

...

...

       1.      Open the AS Java – Config Tool (<INSTANCE>\j2ee\configtool\configtool.bat).

       2.      Under template This graphic is explained in the accompanying text log configuration This graphic is explained in the accompanying text destinations, add a new destination, and set the severity to Info.

       3.      Under locations This graphic is explained in the accompanying text Root Location This graphic is explained in the accompanying text com This graphic is explained in the accompanying text sap This graphic is explained in the accompanying text portal This graphic is explained in the accompanying text pcd This graphic is explained in the accompanying text adminTraceability, set your destination by adding the destination to the location’s custom configuration.

       4.      Under categories This graphic is explained in the accompanying text System This graphic is explained in the accompanying text Changes set your destination by adding the destination to the location’s custom configuration.

       5.      Save your changes and restart the portal.

This graphic is explained in the accompanying text

To specify a custom log file location for a specific node, perform the previous procedure on the specific node, instead on of the template.

Log Contents

The log includes the following information:

·        The name of the operation

·        The path of the unit

·        The object class

·        The user who made the change

·        The attributes that were changed or added

Example

Operation: Attributes changed

Unit Internal Name:

Unit Name: com.sap.portal.system/gpal_hidden_content/gwd/tc~pp~iview_per/metadata/com.sap.portal.iview.personalization.IviewPersonalizationApplication_base

Object Class: com.sapportals.portal.page

Unit Object Class: com.sapportals.portal.page

By User: pcd_service

By User ID: USER.PRIVATE_DATASOURCE.un:pcd_service

Attribute: Attribute ID = com.sap.portal.page.PrimaryLayout, Value Type = string, Inheritance Type = non final, Storage Type = user, Ordered = true, Persistable = true, Value = fullWidth

The following terms are used in the log:

·        Unit Internal Name – an internal unit is an object that lies under a unit object

·        Unit Name – a unit is an object that lies directly under a folder

·        Object Class – the object class of the internal unit

·        Unit Object Class – the object class of the unit

End of Content Area