Previous Topic: Log the Transaction ID for an IIS Web Server

Next Topic: Log the Transaction ID for an Apache Web Server

Log the Transaction ID for a Sun ONE Web Server

To see the Transaction ID in a web server log, specifically configure the Web server hosting the SAML Affiliate Agent to log the ID.

To see the transaction ID in the Sun ONE Web server log, you have to add the SMTRANSACTIONID header variable to the server’s obj.conf file. The variable is %Req->headers.smtransactionid%. Add this variable to the existing list of HTTP server variables that you want to log when the Web server initializes.

For example:

Init fn="flex-init" access="D:/Servers/https-myserver/logs/access" format.access=
"%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length% %Req->headers.smtransactionid%"

In this example, the transaction ID is appended to the end of an existing obj.conf entry, however it can be placed anywhere in the list of variables.

The following is an example of a Web server log entry with the transaction ID in bold:

11.22.33.44 - user1 [27/Jan/2000:16:12:24 -0500] "GET /Anon/index.html HTTP/1.0"
200 748 3890b4b9-58f8-4a74df53-07f6-0002df8