Working with the Apache Log Correlation/Analyzer Sample
Introduction
This sample demonstrates the ability to analyze and correlate log files using the Hyades tools.
Contents
This sample will use a symptom database to analyze an Apache error log. In addition, a time-based correlation will occur on the Apache access log. The user can view the results of the analysis and correlation by exploring the various views within the Profile and Logging Perspective.
Requirements
Hyades 1.2.0 or above.
Viewing the Apache Server access.log file
- Click on the Profiling Monitor tab on the Profiling and Logging Perspective.
- Expand the tree view.
- Click on the <terminated> Access Log File child element.
- From the pop-up menu of the selected child element, select Open With > Log View.
- Click on any log records from the Log View and view its properties.
Viewing the Apache error.log file
- Click on the Profiling Monitor tab on the Profiling and Logging Perspective.
- Expand the tree view.
- Click on the <terminated> Error Log File child element.
- From the pop-up menu of the selected child element, select Open With > Log View.
- Click on any log records from the Log View and view its properties.
Displaying the Apache Log files in the Log Interactions view
- Click on the Profiling Monitor tab on the Profiling and Logging Perspective.
- Expand the tree view.
- Click on the <hostname> child element where <hostname> is the local hostname.
- From the pop-up menu of the selected child element, select Open With > Log interactions.
- Click Cancel on the Select Log Records Correlation Schema dialog.
Performing a Time-based correlation on the Apache Log files
- Click on the Profiling Monitor tab on the Profiling and Logging Perspective.
- Expand the tree view.
- Click on the <hostname> child element where <hostname> is the local hostname.
- From the pop-up menu of the selected child element, select Open With > Log interactions.
- Select the Default Time correlation schema in the Select Log Records Correlation Schema dialog.
- Click OK.
- In the Sequence Diagram:Log interactions view, the interactions between the two logs are displayed.
- From the pop-up menu of any square (log record), select Log View to views the selected log record in the Log View.
Analyzing the Apache access or error log records
- Click on the Profiling Monitor tab on the Profiling and Logging Perspective.
- Expand the tree view.
- Click on the <terminated> Error Log File or <terminated> Access Log File child element.
- From the pop-up menu of the selected child element, select Open With > Log View.
- From the pop-up menu of any log record in the in the Log Records pane, select Analyze All > Default Log Analyzer. Log
records associated with a symptom match will be indicated by a filled, blue
square in the background.
- Click on the Analysis Result tab in the Log View for a selected log record to view the
explanation of the problem and any possible recommendation(s) to fix the problem.