Description: This guide demonstrates how to monitor your logs. You can view your logs from the command-line, Oracle Enterprise Manager Fusion Middleware Control Console, or WebLogic Scripting Tool (WLST). I'll discuss the advantages and disadvantages of these utilities.
Method 1: Using the Command-line
Advantage: Real-time logs and very good for trailing tasks that produce small log output.
Disadvantage: Cluster OIM environment may require tailing multiple logs and large log output takes too long to track.
The OIM logs can be found in "<domain_home>/servers/<server_name>/logs" directory. Most of the time you would tail the "oim_server1.log" (oim_server1.out if node manager is controlling the OIM managed server), the "oim_server1-diagnostic.log", and your custom logs (E.g. Log file specifically for a schedule task).
cd /home/oracle/Oracle/Middleware/user_projects/domains/oim_domain/servers/oim_server1/logs tail -f oim_server1.out
WLST provides several out of the box commands to monitor your logs. Refer to Logging Custom WLST Logs section in the WebLogic Scripting Tool Command Reference document. Execute the wlst.sh located in "<idm_home>/common./bin" directory and then connect to weblogic in WLST.
cd /home/oracle/Oracle/Middleware/Oracle_IDM1/common/bin ./wlst.sh #invoke wlst connect('weblogic','Password1','t3://localhost:7001'); #Establish connection to AdminSever listLogs() #This displays all you log files
Method 2: Oracle Enterprise Console Fusion Middleware Control
Advantage: Useful search and categorizing functionality (E.g. specific time range, keywords, log level) and centralized place to look at your logs especially for a clustered environment.
Disadvantage: Small delay in displaying real-time logs (Have to refresh)
Follow the steps given below to view your logs in the UI:
1. Log in to the Enterprise Console Fusion Middleware Control.
2. On the top left of the page, click the "Farm" drop down menu.
3. Select "Logs > View Log Messages"
To look at each logs individually:
1. On the Log section, click the Selected Target icon.
2. Click on the icon displayed in the Target Log Files column to view a list of logs on that target application.
3. Highlight a specific log you want to view and click View Log file.
I am looking for API logs where do I locate API logs.
ReplyDelete