Using the Log Analysis Utility to Identify Problems
About the Log Analysis Utility
The Log Analysis Utility is a command-line utility that helps you quickly identify the cause of issues reported by Oracle Enterprise Performance Management System components by analyzing the applicable log files. Because this utility automates log file analysis, you do not need to manually locate and scan EPM System log files to identify issues. Information required to troubleshoot the issue or to escalate it to Oracle Support is quickly available by running this utility. Run on the server where Oracle Hyperion Foundation Services is installed, this utility accesses and analyzes log files on all the servers identified in the Oracle Hyperion Shared Services Registry of an EPM System instance.
Using the Log Analysis Utility, you can:
-
List EPM System errors that occurred within a time period. System issues are related to services, intercomponent communication errors, and user directory communication errors.
-
List functional issues that occurred within a time period. Functional issues are related to EPM System component functionalities; for example, failure during an Oracle Essbase calculation run or the forms load process in Oracle Hyperion Planning or Oracle Hyperion Financial Management.
-
Trace an Execution Context ID (ECID) through log files to trace user sessions across EPM System components. ECID is a unique identifier that is used to correlate events that are part of the same request execution flow. ECID is an Oracle standard unique ID.
Prerequisites
Any user who has access to EPM_ORACLE_INSTANCE/bin
; for example, C:/Oracle/Middleware/user_projects/epmsystem1/bin
on a Windows server, can run the Log Analysis Utility.
-
Users running the Log Analysis Utility must have execute privileges on the following files:
Windows:
EPM_ORACLE_INSTANCE/bin/loganalysis.bat
-
Users running the Log Analysis Utility must have read permission on the files and directories within
MIDDLEWARE_HOME/user_projects
on all server machines that host EPM System components. Users must also have write permission on the directory where the utility creates its reports.If log files are not stored in a location within
MIDDLEWARE_HOME/user_projects
, users running the utility must have read permission on the log files in their custom location.
Location of Log Analysis Utility Reports
Log Analysis Utility creates an HTML report based on the command options that you specify and stores it in EPM_ORACLE_INSTANCE/diagnostics/reports
, for example, in C:/Oracle/Middleware/user_projects/epmsystem1/diagnostics/reports
on a Windows server.
Generally, the Log Analysis Utility uses the following report-naming convention:
LogAnalysis_Report_YYYY_MM_DD_HR_MIN_SEC.html
Log Analysis Utility provides a command option that enables you to specify a unique report name.
Note:
If the contents of Log Analysis Utility reports are garbled, remove the -Dfile.encoding=UTF-8
directive from the Log Analysis Utility executable (EPM_ORACLE_INSTANCE/bin/loganalysis.bat
or EPM_ORACLE_INSTANCE/bin/loganalysis.sh
), and then regenerate the report.
Log Analysis Utility Options
The options for using the Log Analysis Utility:
loganalysis [-all | -system | -functional | -m [ERROR | INCIDENT_ERROR
WARNING | NOTIFICATION | TRACE]] [-t [<TIME FROM> <TIME TO>] -tday <days> -thour <hours> -tmin <minutes>] -ecid <ecid> -s <SEARCH STRING> -d <Offline log files directory> -f <file with message ids to filter from the report> -maxsize <max report size in MB>
Table 3-1 Log Analysis Utility Parameters
Parameter | Description |
---|---|
-h |
Displays the help page.
Example: |
-system |
Generates a report containing Example: |
-functional |
Generates a detailed report that contains messages that are of type WARNING , NOTIFICATION , and TRACE . Typically used by EPM System Functional Administrators.
Example: |
-ecid <ECID> |
Generates a report that traces an activity that was performed across EPM System components. Takes an ECID as the argument. This report is used to trace an error across EPM System components. Generally, this option is used after you identify
an error by running a report using the Note: ECID that contains the caret symbol (^) must be enclosed in quotation marks. Example: |
-m <ERROR TYPE> |
Generates a report containing messages of a specified type. Takes one of the following error message types as the argument:
Example: |
-o <TITLE> |
Generates a report with a custom report title. Takes a report title, enclosed in double quotation marks, as the argument.
Example: |
-s <STRING> |
Generates a report on log messages that contain the specified string. Takes an error string, enclosed in double quotation marks, as the argument.
Example: |
-t <FROM DATE> T<FROM TIME><TO DATE> T<TO TIME> |
Generates a report on log messages that were generated within the specified time period. Takes a space-separated "from" time and a "to" time as the argument.
"From" time and "to" time must be specified in Example: |
-tday <DAYS> |
Generates a report on log messages generated within the specified number of days. Takes a numeric value as the argument. Example: |
-thour <HOURS> |
Generates a report on log messages that were generated within the specified number of hours. Takes a numeric value as the argument. Example: |
-tmin <MINUTES> |
Generates a report on log messages that were generated within the specified number of minutes. Takes a numeric value as the argument. Example: |
-d <DIRECTORY PATHS> |
Generates a report on log files stored in specified directory paths. You use this option to analyze log files that are not stored in the default log file location of EPM System components. You can specify multiple log locations by using a comma-separated list of locations. Directory paths must be enclosed in double quotation marks.
Example: |
-f <arg> |
Not used in this release; reserved for future use. |
-maxsize <arg> |
Increases the report size. Default report size is 5 MB. Example: |
-all |
Generates a report listing messages in all log files. Generating this report may take awhile and may yield a large report file. Oracle does not recommend using this command option without other parameters that restrict the report scope.
Example: |
Running the Log Analysis Utility
The Log Analysis Utility is a command line utility.
To run the Log Analysis Utility:
-
Start a command prompt on the server machine that hosts Foundation Services.
-
Navigate to
EPM_ORACLE_INSTANCE/bin
; typically,C:/Oracle/Middleware/user_projects/epmsystem1/bin
on a Windows server. -
Execute a command. Specify the appropriate command options for generating the report. See Table 3-1.
loganalysis.bat OPTIONS
(Windows)For example, use a command such as the following on a Windows server to create a report titled "Database Issues_1-21-2013_11AM", which contains messages related to an error that caused an EPM System component to lose database connectivity around 11 a.m. on November 21, 2012:
loganalysis -system -t 2013-01-21T11:15:00 2013-01-21T11:20:00 -s "Failed to connect to DB" -o "Database Issues_1-21-2013_11 AM"
.
Finding the ECID of a User Activity
ECID is a unique system generated identifier that correlates a user's activity across several EPM System components.
To find the ECID of a user's activity, you must first generate a Log Analysis Utility report. ECID, which is included in log message details, resembles the following:
0000Jet8kA6ESOG_Ix5Eif1G^RAF000005
To locate the ECID of a user activity:
-
Run the Log Analysis Utility and generate a report that lists system or functional errors. See Running the Log Analysis Utility.
-
From
EPM_ORACLE_INSTANCE/diagnostics/reports
(for example,C:/Oracle/Middleware/user_projects/epmsystem1/diagnostics/reports
on a Windows server), open the report that you generated.