Viewing Log Messages with the Log Viewer Tool
The Log Viewer tool enables you to view the latest messages in the plain text log files of My webMethods Server. You can set the log messages collection criteria using the Log Configuration tool. For more information, see the Analysis, Reporting and Troubleshooting chapter of Administering My webMethods Server.
To view log messages
1. Log on as an administrator on My webMethods Server.
2. In My webMethods Server: Tools > MWS Monitoring and Diagnostics > Log Tracing and Analysis.
3. Locate the Log Viewer tool and drag it onto the workspace.
4. In the Log File field, select the file that you want to analyze.
5. In the Lines field, select the number of lines that you want to display.
The default configuration of the Log Viewer tool is set to show the last page of the last 500 lines of My webMethods Server full log file.
The list of files is updated whenever the logs are rotated. This happens either overnight or based on the log file size depending on the log4j configuration. You can use the updated list of files when you re-open the tool. For more information, see Logging Configuration
6. To display the most recent information, click Refresh.
You can sort the table by any column. If a log entry has a stack trace associated with it, you can display it by clicking on the icon in the ST column.
7. To export the provided plain text log files, click Export Logs and proceed as follows:
a. From the Available area, on the window that opens, choose a file which you want to export.
If you select a single log file for export, the application enables you to choose whether you want to compress it into a zip file. If you do not select the Compress selected log files before export option, the downloaded data is an uncompressed plain text file.
When you select and export more than one log file, the application automatically compresses the data into a zip file.
b. Click Export.
c. Specify a directory on the file system in which you want to download and save the file and then click OK. Alternatively, you can open the file without saving it on the file system.
8. To search for a particular entry in the result table, in the Text and Date fields provide your search criteria and proceed as follows:
a. To display the first entry that matches the search criteria, click Search.
b. To display a consecutive entry that matches the search criteria, click Search Next.
The tool highlights the found entry.
c. To reset the search criteria, click Clear.