Change the message format in log files
We can change the message format for a server-specific message log file.
To change the message format for a server-specific message log file, complete the following steps:
Steps
- Go to the directory where the routing file is located. The default location for the ISAM servers is one of the following operating system-specific locations:
- AIX, Linux, and Solaris operating systems
- /opt/PolicyDirector/etc/
- Windows operating systems
- %PD_HOME%\etc\
The default location for a WebSEAL server is one of the following operating system-specific locations:
- AIX, Linux, and Solaris operating systems
- /opt/pdweb/etc/
- Windows operating systems
- %PD_WEB%\etc\
- Edit the appropriate server-related routing file. The following list contains the names of the routing files:
- pdmgrd_routing
- The routing file for the policy server
- pdacld_routing
- The routing file for the authorization server
- routing
- The routing file used for the C runtime
- routing
- The routing file for the WebSEAL server
Although the routing file for the C runtime and the WebSEAL server have the same file name, these files are in different directories.
- Find the statement that defines how to log messages of a specific severity. For example, find the ERROR statement in the routing file to change the logging of error messages. The ERROR statement might be similar the following statement:
ERROR:STDOUT:-;UTF8FILE:pd_install_dir/log/msg__pdmgrd_utf8.log :644:ivmgr:ivmgrwhere pd_install_dir is either /var/PolicyDirector or the directory that is defined by the tivoli_common_dir stanza entry of the pd.conf configuration file (/var/ibm/tivoli/common).For example, to log error messages in the XML format and to log these messages to the msg__error.log file, make the following changes:
- Change UTF8FILE to XMLFILE
- Change msg__pdmgrd_utf8.log to msg__error.log
The following statement is the result of these changes:
ERROR:STDOUT:-;XMLFILE:pd_install_dir/log/msg__error.log :644:ivmgr:ivmgr
- Save and exit the routing file.
After this statement is changed, ERROR messages are written to the standard output device in ASCII text and written to the msg__error.log file in the XML format.
Parent topic: Message event logging