Working with the Profiling Files/Log Correlation Sample

Introduction

This sample demonstrates the ability to view, and correlate profiling and log files from a distributed system.

Contents

This sample will have a WebSphere trace log and a WebSphere activity log from two different locations that are part of a distributed system. The user can use these logs to create correlations and view the results of the correlation by exploring the various views within the Profile and Logging Perspective. In addition, two ARM Data Collector profiling result sets will be available, from the same two machines. The user can view the results of the trace by exploring the various views within the Profile and Logging Perspective.

Viewing the WebSphere trace.log file

  1. Click on the Log Navigator tab on the Profiling and Logging Perspective.
  2. Expand the Logs tree view.
  3. Click on the Trace Log File child element.
  4. From the pop-up menu of the selected child element, select Open With > Log View.
  5. Click on any log records from the Log View and view its properties.

Viewing the WebSphere activity.log file

  1. Click on the Log Navigator tab on the Profiling and Logging Perspective.
  2. Expand the Logs tree view.
  3. Click on the Activity Log File child element.
  4. From the pop-up menu of the selected child element, select Open With > Log View.
  5. Click on any log records from the Log View and view its properties.

Performing a Time-based correlation on the WebSphere Log files

  1. Click on the Log Navigator tab on the Profiling and Logging Perspective.
  2. Expand the Correlations tree view.
  3. Click on the Default Time child element.
  4. From the pop-up menu of the selected child element, select Open With > Log interactions.
  5. In the UML2 Sequence Diagram view, the interactions between the two logs are displayed.
  6. From the pop-up menu of any square (log record), select Open in Log View to view the selected log record in the Log View.
  7. From the pop-up menu of any square (log record), select Go To > Statistical View to view the selected log record in Statistical View.

Viewing a Time-based distributed correlation

  1. Click on the Log Navigator tab on the Profiling and Logging Perspective.
  2. Select on one of the Hosts.
  3. From the pop-up menu (right-click) of the selected host, select Open With > Host Interactions to view the interactions between the different machines of the distributed application.

Navigating between the different types of data (trace/log/statistical)

  1. Click on the Log Navigator tab on the Profiling and Logging Perspective.
  2. Expand the Logs tree view.
  3. Click on the Trace Log File child element.
  4. From the pop-up menu of the selected child element, select Open With > Log View.
  5. Click on any log records from the Log View and view its properties.
  6. Right click on a record and select Go to -> (any of the) UML2SD Interactions Views
  7. In any of the UML2SD Interactions Views right click on a record and select Go to -> Log to view the corresponding log record.
  8. Or, right click on a record and select Go to -> Statistical View to view the corresponding log record.
  9. In Statistical View (StatCon editor) right click on the time bar at the bottom of the viewer and select Go to-> Log to view the corresponding log record.
  10. Or, right click on the time bar at the bottom of the viewer and select Go to-> (any) UML2SD Interaction View to view the corresponding record.