The Access Gateway Service logs contain the messages sent between the Access Gateway Service and the Embedded Service Provider and between the Access Gateway Service and the Web server. They are configurable from the main configuration page. The options allow you to configure the which events are logged and which file they are sent to by using filters and profiles.
The Logging page allows you to configure the events that are sent to the Access Gateway Service log file. You can configure the Access Gateway Service to log to multiple files and use a filter so that specific types of events go to a specific log file.
In the Administration Console, click
> > > .Select one of the following actions:
New: To add a new log profile, click Section 4.2.2, Configuring a Log Profile.
. Specify a name for the profile, then click . For more information on how to configure the profile, seeDelete: To delete a profile, select the check box next to the profile, then click
.Copy: To copy a profile, select the check box next to the profile, then click Section 4.2.2, Configuring a Log Profile.
. To rename the copy and modify it, click the name of the copy. For configuration information, seeEnable: To enable a profile, select the check box next to the profile, then click
.Disable: To disable a profile, select the check box next to the profile, then click
.Click
twice, then update the Access Gateway.Use the Log Profile page to configure where the log file is located, how much disk space the log file can consume, and what types of events are logged.
In the Administration Console, click
> > > >To create a new profile, click New, specify a name, then click
.To control where the events are logged, configure the following fields:
Log Profile Name: Displays the current name of the profile.
Log File Path: (Not configurable) Displays the location of the log files.
Log File: Specifies the name and extension for the log file. If you are creating multiple profiles, select a name that indicates the purpose of the profile. For example, you could create a log file for Form Fill policy entries and name the file form_fill.log.
If this name includes a subdirectory, the subdirectory is created relative to the displayed
.Echo To Console: Causes the events to be logged in the catalina.out (Linux) file or the stdout.log (Windows) file.
Configure the following rollover options to control how much disk space can be used for logging before a new log file is created and old log files are deleted.
You can enable both options, and the event that occurs first causes the log file to roll. For example, you can configure the log file to roll over at 50 MB and daily. On weekdays, the log file reaches 50 MB by noon and is rolled over. On weekends, it does not reach 50 MB by the end of day so the daily option causes it to roll over.
Size-Based: To roll over log files based on the size of the log file, select
, then specify a maximum file size in megabytes.Date-Based: To roll over log files based on a date or time, select
, then select whether you want the file rolled over hourly, daily, weekly, or monthly.Maximum Backup Files: Specify the maximum number of log files you want saved before older files are deleted. If you leave the field blank, one backup file is created. If you specify 0, no backup files are created. When the log file reaches its rollover limit, a new log file is created and the old log file is deleted.
To specify the information included in a log entry and the order in which it is included, click
, then specify one or more of the formats listed in the table below.Each log entry can be followed by a bracketed string that labels the component or formats the component. The format strings are printf-style format strings. If you do not specify a format for the component, the default format is used. The space at the beginning of the format string is significant and supplies a space between the components in the log entry.
T he logging system uses the following as the default format string:
^BT[amLogEntry] ^DT[yyyy-MM-dd'T'HH:mm:ss'Z'] ^LV[ %1$-5s] ^PR[ %1$-5s] ^EC[ AM#%s:] ^DV[ AMDEVICEID#%s:] ^AI[ AMAUTHID#%S:] ^EI[ AMEVENTID#%s:] ^CD[ %s] ^LD[ %s] ^ET[amLogEntry]
The space between the components in the default string is not significant. It is included to make the string more readable. This format produce log entries similar to the following:
<amLogEntry> 2010-03-27T16:05:58Z INFO AGM: AM#504650001: AMDEVICEID#ag-9859848722920601: ApacheGatewayManager: doSystemCommand(), (/opt/novell/ag/bin/novell-agctl restart,Apache Reconfigure) </amLogEntry>
To specify the events that are logged, select one or more of the following actions:
Select a filter, then click
.Select a filter, then click
.Create a filter. Click Section 4.2.4, Configuring a Log Filter.
, specify a name, then configure the events. For configuration information, seeClick
.Select the profile, click
, then click .Click
, then update the Access Gateway.Use this page to create and manage log filters. The log filter determines the type of events that are logged when the filter is enabled for a log profile.
In the Administration Console, click
> > > >Select one of the following actions:
New: To add a new log filter, click Section 4.2.4, Configuring a Log Filter.
. Specify a name for the filter, then click . For more information on how to configure the filter, seeDelete: To delete a filter, select the check box next to the filter, then click
. A filter cannot be deleted when a log profile is using it.Copy: To copy a filter, select the check box next to the filter, then click Section 4.2.4, Configuring a Log Filter.
. To rename the copy and modify it, click the name of the copy. For configuration information, seeClick
twice, then update the Access Gateway.Use this procedure to specify the type of data that should be logged. You can restrict the information in the following ways:
In the Administration Console, click
> > > > > .To change the name of the filter, specify a new name in the
text box.To restrict events to specified IDs, event codes, or strings, click
, then specify a value for one or more of the following fields.Use these options when you have been viewing log files, you have identified the information you want to view, and you want to restrict the log entries to this information. When you enter multiple values, use a comma to separate the values.
For information on the various tags used in the log files, see Understanding the Log Format
in the Novell Access Manager 3.1 SP2 Administration Console Guide.
Device IDs: The AMDEVICEID# value identifies the device that performed the action. To correlate the ID with the device, click
> .Authentication IDs: The AMAUTHID# value identifies the user for a specific session. Specify one or more values.
Preamble (Match Any): The preamble is an optional string that usually identifies the component generating the log, such as AGM or NIDS. Specify one or more values to match. The entry is included whenever a string matches one of the listed values.
Preamble (Match All): The preamble is an optional string that usually identifies the component generating the log, such as AGM or NIDS. Specify multiple values only if you want the entry to include all the listed strings before it is logged.
Correlation Data (Match Any): The correlation data consists of correlation tags and data unique to a specific type of trace. Specify one or more values to match. The entry is included whenever a string matches one of the listed values.
Correlation Data (Match All): The correlation data consists of correlation tags and data unique to a specific type of trace. Specify multiple values only if you want the entry to include all the strings before it is logged.
Log Data (Match Any): The log data is the additional information that is included in the log entry, such as Apache Service is not responding in a timely manner. Specify one or more values to match. The entry is included whenever a string matches one of the listed values.
Log Data (Match All): The log data is the additional information that is included in the log entry, such as Apache Service is not responding in a timely manner. Specify multiple values only if you want the entry to include all the listed strings before it is logged.
Always Log Event Codes: The AM# value identifies the event code. Specify one or more values to match.
To specify the information level, select one or more of the following
. These levels are independent of each other. If you want both Error messages and Warning messages, you need to select both levels.Select All: Logs all levels of event information.
Warning: Logs events that might cause system processing to fail.
Info: Logs informational events such as configuration changes, startups, and shutdowns that complete successfully. If the event generates any type of error, warning, or severe message, these messages are not logged.
Debug: Logs messages that include additional information useful to Novell Support and Engineering.
Error: Logs events that error conditions generate.
Trace: Logs messages that are useful to Novell Engineering.
Severe: Logs serious failures that can cause system processing to fail.
To specify the event types to include and the information level, click
, then select one or more of the following. To view and select specific events for a category, use the arrow icons to expand the lists. For a description of a specific event, mouse over the event.URL Request Processing: Logs information about how the requested URL was processed.
Authorization Processing: Logs information about the authorization processing. Error events need to be resolved for the system to operate properly.
Identity Injection Processing: Logs information about the processing of Identity Injection policies. Error events need to be resolved for the system to operate properly.
Form Fill Processing: Logs information about the processing of Form Fill policies. Error events need to be resolved for the system to operate properly.
Web Server Communication: Logs information about the Identity Injection parameters and Form Fill parameters sent to the Web servers.
Administration Request Processing: Logs information about commands. Error events need to be resolved for the system to operate properly.
Statistics: Logs information about the processing of statistic requests. Error events need to be resolved for the system to operate properly.
Health: Logs information about the health checks that the Access Gateway Service performs. Error events need to be resolved for the system to operate properly.
Alerts Processing: Logs information about the alerts that the Access Gateway Service generates.
Configuration Processing: Logs information about configuration changes. Error events need to be resolved for the system to operate properly.
Initialization/Termination Processing: Logs information about the startup and shutdown procedures of the Access Gateway. Error events need to be resolved for the system to operate properly.
Click
.Click
, then update the Access Gateway.The following procedure explains how to use the logging feature of the Access Gateway Service to troubleshoot a single feature, such as Form Fill. The filter is configured to log the Form Fill information that is generated as the Access Gateway Service processes Form Fill policies. These entries are logged to a single file.
In the Administration Console, click
.On the Log Profiles page, click Form Fill, then click .
, specify a name for the profile such asSpecify a name for the log file, such as formfill.
In the Filter List section, click
.Click Form Fill Filter, then click .
, specify a name for the filter such asExpand the
section.Select
, then click the expand/collapse icon on the left.To view the events you have selected, expand the
, , and options.Notice that the selected events allow you to determine if the Access Gateway found a page that matches the Form Fill policy and whether the policy was evaluated without errors.
Select
, then click the expand/collapse icon on the left.Expand the
level of events, then make sure that the event is select and that the event is deselected.Click
.Select the profile, click
, then click .Click the Access Gateways link, then update the Access Gateway.
Log in as a user and access a resource that has been assigned a Form Fill policy.
View the entries in log file.
Linux: /var/opt/novell/amlogging/logs
Windows: \Program Files\Novell\amlogging\logs
(Optional) To view how the Embedded Service Provider evaluates the Form Fill policy, see Form Fill Traces
in the Novell Access Manager 3.1 SP2 Policy Guide.
(Optional) To add more information about Form Fill policies to the Apache error_log file, enable the option. For more information, see Section 5.7, Advanced Access Gateway Service Options.