Troubleshooting a federated transaction is difficult when many transactions are logged in one file. To follow a single transaction in a trace log, use the SAML transaction ID. When a federation call occurs, the FWS application first generates a SAML Transaction ID. The SAML Transaction ID is generated only once. This unique SAML transaction ID can map to multiple transaction IDs
For example, you can see the following message in the fwstrace.log for a SAML 2.0 POST transaction. Note the line in bold that shows the mapping of the two transaction IDs.
[08/01/2013][17:33:54][2292][1884][1c2d7650-b006e46a-ed071f41-bbbede33-fe78e2dd-38d][SSO.java][processAuthentication][SAMLTransactionID 2aaf90ec-fdef4897-0ef49d91-63d4031d-f508a3e9-12 maps to TransactionID: 1c2d7650-b006e46a-ed071f41-bbbede33-fe78e2dd-38d.]
The CA SiteMinder® Federation system generates a new SAMLTransactionID only if it is acting as the asserting party. These specific activities are:
At the relying party, there exists a request ID, which can be traced easily through the log files. The request ID makes it unnecessary for the CA SiteMinder® Federation system to generate a SAMLTransactionID at the relying party.
For each unique SAML transaction ID, there can be multiple transaction IDs. When a new HTTP transaction occurs, a new transaction ID is generated. This transaction ID is mapped to the single SAML transaction ID. For example, in the trace log you can see the following entries:
SamlTransactionID ["xyz"] maps to TransationID["123"] ["123"] HTTP operation ["123"] HTTP operation
A new transaction ID "456" is generated:
SamlTransactionID["xyz"] Maps to Transactionid["456"] ["456"] <some operation> ["456"] <some operation>
Transaction IDs are placed in the fwstrace.log and the smtracedefault.log. The same set of transaction IDs for a single transaction is written to each of these logs. The trail of IDs in these logs enables you to follow a transaction. If there is a failure, the IDs help you determine which event failed for a transaction.
To monitor a transaction, you can follow the two types of transaction IDs in the FWSTrace.log or smtracedefault.log. If there is a failure, looking at the IDs can help you determine the failure point.
To follow a transaction in a log, use one or more of the following methods:
Example:
[usr@rhel632 etc]# more fwstrace.log| grep checkpoint [CHECKPOINT = SSOSAML2_SPCONFFROMPS_REQ]] [CHECKPOINT = SSOSAML2_SPCONFREAD_REQ]] [CHECKPOINT = SSOSAML2_SPCONFFROMCACHE_REQ]] [CHECKPOINT = SSOSAML2_SESSIONCOOKIEVALIDATE_REQ]]
The profiler is the Policy Server facility for logging. You can use the profiler to collect trace messages for federation services and write them to the smtracedefault.log file.
The component that controls the trace messages for federation services at the Policy Server is the Fed_Server component.
The Policy Server Profiler allows you to trace internal Policy Server diagnostics and processing functions.
Follow these steps:
Important! If you are accessing this graphical user interface on Windows Server 2008, open the shortcut with Administrator permissions. Use Administrator permissions even if you are logged in to the system as an Administrator. For more information, see the release notes for your CA SiteMinder® component.
Notes:
Changes to the Profiler settings take effect automatically. However, if you restart the Policy Server, a new output file (if the Profiler is configured for file output) is created. The existing Profiler output file is automatically saved with a version number. For example:
smtracedefault.log.1
If changes to the Logging or Tracing facility settings are not related to the Profiler output file, for example, enabling/disabling the console logging on Windows, the existing file is appended with new output without saving a version of the file.
By default The Policy Server retains up to ten output files (the current file and nine backup files). Older files are replaced automatically with newer files when the ten file limit is reached. You can change the number of files to retain by configuring the TraceFilesToKeep DWORD registry setting to the required decimal value. The TraceFilesToKeep registry setting must be created in the following registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Netegrity\SiteMinder\CurrentVersion\ LogConfig\TraceFilesToKeep
The Profiler tab has a "Buffered Tracing" option, which is set by default to improve Policy Server performance. This option is on Solaris systems only.
To simplify the task of collecting tracing data simpler, a series of preconfigured templates are installed with the Web Agent Option Pack. You can use these templates instead of creating your own trace configuration file to collect the data.
The following templates are available:
Template |
Tracing Messages Collected |
---|---|
FWSTrace.conf |
Default template. Collects data that you specify. |
FWS_SSOTrace.conf |
Collects single sign-on messages |
FWS_SLOTrace.conf |
Collects single logout messages |
FWS_IPDTrace.conf |
Collects Identity Provider Discovery Profile messages |
All the FWS templates include the Fed_Client component and subcomponents for the specific data being tracked. To see the exact contents, open each template.
Follow these steps:
Note: Do not edit the template directly.
The templates determine the federation components that the federation system monitors. To enable trace logging and format how the data appears in the log file, modify the Logger.Config properties file.
Follow these steps:
Note: You can rename the log file. FWSTrace.log is the default name.
Specify only one template. All the templates reside in the directory web_agent or web_agent_option_pack_home/config.
The following text is an excerpt from the FWS_SLOTrace.conf template. Most of the file contains comments and instructions on how to use the file, the command syntax, and the available subcomponents for the Fed_Client component.
The excerpt shows the component, Fed_Client and the subcomponents (Single_Logout and Configuration) that are monitored. The excerpt also shows the specific data fields that indicate the required contents of each message (Date, Time, Pid, Tid, TransactionId, SrcFile, Function, Message).
components: Fed_Client/Single_Logout, Fed_Client/Configuration data: Date, Time, Pid, Tid, TransactionID, SrcFile, Function, Message
Copyright © 2014 CA.
All rights reserved.
|
|