Event Logging Parameters
Event Logging Parameters
The Event Log Level field specifies the information that Web Gateway writes to the Web Gateway Event Log. Logging options are defined as a string of characters, each character representing a logging command. The value set here for the log level is the default for the system (that is, all InterSystems IRIS servers). Except where noted, you can set a different value for individual InterSystems IRIS servers.
You can view or clear the log from the CSP Web Management page menu. The logging parameters, shown below, are used mainly for troubleshooting:
Logging Option | Function |
---|---|
E | Record all errors. This option allows you to monitor connection failures. |
V | Verbose: Record the basic connection dialog between the Web Gateway and an InterSystems IRIS system. Use this option to record the strategic points of communication between the Web Gateway and an InterSystems IRIS server. There are 7 levels to this command (1 to 7). Each successive level records more detailed information. The levels are accumulative. For example, level V3 includes all log information specified for V1 and V2. |
EV | Enter EV to turn on basic event logging. The higher log levels generate a large volume of data in the log file and should only be used for diagnosing problems. For production systems it is recommended that the log level should be set to no higher than EV. |
V1 | Same as V. |
V2 | In addition to the information specified for previous levels, this level records:
|
V3 | In addition to the information specified for previous levels, this level records: InterSystems IRIS headers and HTTP headers.
Note: When this logging level is specified for an individual server, request headers are not logged, but response headers and other data will be. |
V4 | In addition to the information specified for previous levels, this level records: Information regarding the serialization of state-aware sessions.
Note: When this logging level is specified for an individual server, request headers are not logged, but response headers and other data will be. |
V5 |
In addition to the information specified for previous levels, this level records the contents of data buffers received from, and sent to, InterSystems IRIS via the WebSocket protocol. All data framing (where applicable) is also recorded. Finally, further information about the nature of the WebSocket created is also recorded at initial connection time. For example:
Note: When this logging level is specified for an individual server, request headers are not logged, but response headers and other data will be. |
V6 | In addition to the information specified for previous levels, this level records:
Note: When this logging level is specified for an individual server, request headers are not logged, but response headers and other data will be. |
V7 | In addition to the information specified for previous levels, this level records: The full content returned from InterSystems IRIS.
Note: When this logging level is specified for an individual server, request headers are not logged, but response headers and other data will be. |
V9 | Record incoming HTTP request data. The full bodies of all HTTP requests are recorded. This log directive can be further extended and refined.
Note: The forms V9, V9r, V9a, and V9b have no effect when specified for individual servers. These forms of logging can be enabled only at the default level. |
s |
Sessions: Record information about the management of session tokens:
Note: This logging option has no effect when specified for individual servers. This option can be enabled only at the default level. |
c |
Connections: Record information about connections made using the Kerberos Library (IRISCONNECT). Include a log level of lowercase c to instruct the Web Gateway to record a complete audit of all IRISCONNECT functions called, together with the input parameters supplied and the result returned. For the sake of brevity, the content of the input and output buffers to and from InterSystems IRIS are not recorded at this level. Set a log level of uppercase C to record, in addition to the IRISCONNECT function calls, the contents of the input and output buffers. In addition to the logging facilities provided by the Web Gateway, it is possible to instruct the IRISCONNECT library to generate a detailed trace recording its internal processes. To additionally request that a IRISCONNECT trace be generated, add a digit to the c directive to indicate the type of trace required. For example, a log level of c3, in addition to the standard Gateway log entries, generates a level 3 IRISCONNECT trace. Valid IRISCONNECT trace levels are 1 to 6 and are defined as follows:
Unlike the Web Gateway log levels, the IRISCONNECT trace is less verbose at the higher log levels. Log level 1, therefore, provides the most detailed trace file. The Web Gateway instructs the IRISCONNECT library to maintain its trace in a file called irisconnect.log located in the Web Gateway home directory. The security considerations and permissions for this file are the same as those for the Web Gateway Event Log. Note: An IRISCONNECT trace can only be activated on a per-process basis, so it cannot be truly isolated to a server. Once configured, trace log generation is not triggered until a new SSL connection is attempted. |
t |
Transmission: Record the raw data buffers received by and dispatched by the Web Gateway. The format for this option is: t[x][y]. The value of x instructs the Web Gateway to record data buffers transmitted between the Web Gateway and InterSystems IRIS and the value of y instructs the Web Gateway to record data buffers transmitted between the Web Gateway and the client, via the hosting web server. x and y can take the following values:
Using lowercase t results in the Web Gateway recording just the first 256 Bytes of transmitted data for each buffer. Using uppercase T results in the Web Gateway recording the full data buffer. All non-printable characters are recorded in their escaped form.Note: When this logging level is specified for an individual server, y options record response buffers sent to the client, but not incoming request buffers from the client. |
p[n] |
Performance: Instructs Gateway to capture information to assess the performance of the CSP installation. n is the number of seconds (total service time) below which data is not recorded for a request. For example, a directive of p records data for all requests, p2 records data for requests taking longer than 2 seconds to service. The following information is recorded.
|
p[n]([v]) |
Provides the capability to conditionally activate verbose logging based on the results of the performance monitor. Useful in situations where you want to record further information about requests that take more than a certain time to process. n is the optional lower time-to-service threshold (in seconds) for which performance data is recorded and v is the verbose log level required. This mechanism applies to verbose Event Log and HTTP logging settings. A request to record error information, e is always applied to all requests regardless of whether or not they are recorded by the performance monitor. For example: ep5(v9)This option records any errors encountered while processing requests for all requests (e). In addition, it records the HTTP request message (v9) but only for requests that take longer than 5 seconds to process (p5). Gateway event logging is designed to have a minimal impact on performance and to occupy a small footprint in terms of system resources consumed. Therefore, the following limitations apply:
|
pp[n] |
Provides detailed timing information as follows:
|
W (or w) |
On Windows, generates a memory dump if a crash occurs. This option is case insensitive. On AIX, generates a core file using the gencore utility. This option is case insensitive. On Linux or MacOS, this option is case sensitive. Specifying w generates a standard core dump using gcore. Specifying W dumps all memory mappings (including shared memory) into the core file by executing gcore -a. On Unix systems, the following preconditions must hold:
|