Understanding ODL Messages and ODL Log Files

Managing Log Files and Diagnostic Data 12-7 By default, the messages are sorted by time, in ascending order. You can sort the messages by the any of the columns, such as Message Type, by clicking the column name. 5. To view messages that are related by time or ECID, click View Related Messages and select by Time or by ECID Execution Context ID. The Related Messages page is displayed.

12.3.1.2 Viewing Log Files and Their Messages Using WLST

You can list the log files for an Oracle WebLogic Server domain, a server, an Oracle instance, or component using the WLST listLogs command. You can use this command while connected or disconnected. While connected, the default target is the Oracle WebLogic Server domain. To list the log files, first use the domainRuntime command as described in Section 12.3 . The following describes how to list and view log files: ■ To list all of the log files for the Oracle WebLogic Server soa_server1, use the following command: listLogstarget=server_soa file:hostscratchOracleMiddlewareuser_projectsdomainsSOA_ domainserverssoa_server1logssoa_server1.log 2010-09-17 16:40:45 4.9M soa_server1.log00001 2010-09-17 18:35:35 4.9M soa_server1.log00002 2010-09-17 20:30:25 4.9M soa_server1.log00003 ... file:hostscratchOracleMiddlewareuser_projectsdomainsSOA_ 12-8 Oracle Fusion Middleware Administrators Guide domainserverssoa_server1logssoa_server1-diagnostic.log 2010-09-22 13:53:32 10M soa_server1-diagnostic-22.log 2010-09-22 19:18:32 10M soa_server1-diagnostic-23.log 2010-09-23 00:42:32 10M soa_server1-diagnostic-24.log 2010-09-23 06:07:32 10M soa_server1-diagnostic-25.log 2010-09-23 11:31:32 10M soa_server1-diagnostic-26.log 2010-09-23 16:56:32 10M soa_server1-diagnostic-27.log 2010-09-23 22:20:32 10M soa_server1-diagnostic-28.log 2010-09-24 03:45:32 10M soa_server1-diagnostic-29.log 2010-09-24 09:11:32 10M soa_server1-diagnostic-30.log 2010-09-24 14:08:32 9.2M soa_server1-diagnostic.log ... ■ To list the logs for the Oracle HTTP Server ohs1 in the Oracle instance asinst_1, use the following command: listLogstarget=opmn:asinst_1ohs1 ■ To list the logs while disconnected, you must specify the oracleInstance parameter, passing it the path of either the Oracle WebLogic Server domain or the Oracle instance home for the system component. For example, to list the log files for the Managed Server soa_server1: listLogsoracleInstance=scratchOracleMiddlewareuser_projectsdomainsSOA_ domain, target=soa_server1 ■ To view the diagnostic messages in log files, use the WLST displayLogs command. This command works when you are either connected or disconnected. For example, to view the messages generated in the last 10 minutes in the log files for the Oracle WebLogic Server domain, use the following command: displayLogslast=10 [2010-09-05T08:05:29.652-07:00] [soa_server1] [NOTIFICATION] [BEA-000628] [Common] [host: hostname] [nwaddr: 10.229.149.27] [tid: [ACTIVE].ExecuteThread: 10 for queue: weblogic.kernel.Default self-tuning] [userId: WLS Kernel] [TARGET: SOA_domainsoa_server1] [LOG_FILE: scratchOracleMiddlewareuser_projectsdomainsSOA_ domainserverssoa_server1logssoa_server1.log] Created 1 resources for pool SOADataSource, out of which 1 are available and 0 are unavailable. [2010-09-05T08:05:29.673-07:00] [soa_server1] [NOTIFICATION] [BEA-000628] [Common] [host: hostname] [nwaddr: 10.229.149.27] [tid: oracle.integration.platform.blocks.executor.WorkManagerExecutor117f5105] [userId: anonymous] [TARGET: SOA_domainsoa_server1] [LOG_FILE: scratchOracleMiddlewareuser_projectsdomainsSOA _domainserverssoa_server1logssoa_server1.log] Created 1 resources for pool SOADataSource, out of which 1 are available and 0 are unavailable. [2010-09-05T08:05:30.448-07:00] [soa_server1] [NOTIFICATION] [BEA-001128] [JDBC] [host: hostname] [nwaddr: 10.229.149.27] [tid: oracle.integration.platform.blocks.executor.WorkManagerExecutor117f5105] [userId: anonymous] [TARGET: SOA_domainsoa_server1] [LOG_FILE: scratchOracleMiddlewareuser_projectsdomainsSOA _domainserverssoa_server1logssoa_server1.log] Connection for pool SOADataSource closed. The previous command returns the messages sorted by time, in ascending order. ■ To display the log files for the Oracle HTTP Server ohs1 in the Oracle instance asinst_1, use the following command: Managing Log Files and Diagnostic Data 12-9 displayLogstarget=opmn:asinst_1ohs1 You can search the messages by specifying particular criteria and sort the output, as described in Section 12.3.2 .

12.3.2 Searching Log Files

You can search for diagnostic messages by time, type of message, and certain log file attributes by using Fusion Middleware Control or WLST commands, as described in the following topics: ■ Searching Log Files Using Fusion Middleware Control ■ Searching Log Files Using WLST

12.3.2.1 Searching Log Files Using Fusion Middleware Control

You can search for diagnostic messages using standard and supplemental ODL attributes using the Log Messages page of Fusion Middleware Control. By default, this page shows a summary of the logged issues for the last hour. You can modify the search criteria to identify messages of relevance. You can view the search results in different modes, allowing ease of navigation through large amounts of data. The following sections describe how to search log files: ■ Searching Log Files: Basic Searches ■ Searching Log Files: Advanced Searches

12.3.2.1.1 Searching Log Files: Basic Searches This section describes how to perform

basic searches for log messages. You can search for all of the messages for all of the entities in a domain, an Oracle WebLogic Server, a component, or an application. For example, to search for messages for a domain: 1. From the WebLogic Domain menu, choose Logs, then View Log Messages. To search for messages for a component or application, select the component or application. Then choose Logs, then View Log Messages from that targets menu. The Log Messages page displays a Search section and a table that shows a summary of the messages for the last hour, as shown in the following figure: See Also: Logging Custom WLST Commands in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference for more information about the listLogs and displayLogs commands 12-10 Oracle Fusion Middleware Administrators Guide 2. In the Date Range section, you can select either: ■ Most Recent: If you select this option, select a time, such as 3 hours. The default is 1 hour. ■ Time Interval: If you select this option, select the calendar icon for Start Date. Select a date and time. Then, select the calendar icon for End Date. Select a date and time. 3. In the Message Types section, select one or more of the message types. The types are described in Table 12–3 . 4. You can specify more search criteria, as described in Section 12.3.2.1.2 . 5. Click Search. 6. To help identify messages of relevance, in the table, for Show, select one of the following modes: ■ Messages: Shows the matching messages. To see the details of a particular message, click the message. The details are displayed below the table of messages. To view related messages, select a message, then click View Related Messages and select by Time or by ECID Execution Context ID. ■ Group by Message Type: Summarizes the matching messages by grouping them based on message type at the target level. This is the default mode. To see the messages, click the count in one of the message type columns. The Messages by Message Type page is displayed. To see the details of a particular message, click the message. The details are displayed below the table of messages. ■ Group by Message ID: Summarizes the matching messages by grouping them based on message ID, message type, and module IDs at the target level. To see the associated messages, click the count in the Occurrences column. The Messages by Message ID page is displayed. To see the details of a particular message, click the message. The details are displayed below the table of messages.

12.3.2.1.2 Searching Log Files: Advanced Searches This section describes some of the

advanced search mechanisms you can use. You can refine your search criteria using the following controls in the Log Messages page: