Previous Topic: How to Set Up Trace Logging

Next Topic: Trace Log Components and Subcomponents

Configure Trace Logging

Before you can use trace logging, you must configure it by specifying a name, location, and parameters for the trace log file. These settings control the size and format of the file itself. After trace logging is configured, you determine the content of the trace log file separately. This lets you change the types of information contained in your trace log at any time, without changing the parameters of the trace log file itself.

To configure trace logging

  1. Locate the WebAgentTrace.conf file on your web server. Create a duplicate of the file.
  2. Open your Agent Configuration Object or local configuration file.
  3. Set the TraceFile parameter to yes.

    Note: Setting the value of this parameter to yes in a local configuration file of a web server overrides any of the logging settings defined on the Policy Server. For example, when the value of this parameter is set to yes in a LocalConfig.conf file, then log files are generated even if the value of the AllowLocalConfig parameter in the corresponding Agent Configuration object on the Policy Server is set to no. Set the related logging parameters (that define the file name, size, and others) in the LocalConfig.conf file too to override any Policy Server log settings.

  4. Specify the full path to the trace log file in the TraceFileName parameter. This is the file that contains the log output.
  5. Specify the full path to the duplicate copy WebAgentTrace.conf file (you created in Step 1) in the TraceConfigFile parameter The trace configuration file that determines which components, subcomponents and data fields to record in the trace log file.

    Note: This file is not used until the web server is restarted.

  6. Define the format the trace log file by setting the following parameters in your Agent Configuration Object or local configuration file:
  7. If you modified the TraceConfigFile parameter, restart the web server so the Web Agent uses the new trace configuration file.
  8. Edit the WebAgentTrace.conf file to have Web Agent monitor the activities you want.

    Framework Web Agents do not support dynamic configuration of log parameters set locally in the Agent configuration file. Consequently, when you modify a parameter, the change does not take effect until you restart the web server. However, these log settings can be stored and updated dynamically if you configure them in an Agent configuration object on the Policy Server.

    Note: IIS 6.0 Web Agents create log files only after the first user request is submitted. Apache 2.0 Web Agents create log files when the Apache server starts.


Copyright © 2010 CA. All rights reserved. Email CA about this topic