Using the Log File Viewer Page
Clicking the Log File Viewer link on the System Health Monitoring Tools page, displays the Log File Viewer page. From this page, you can select the log directories registered in the server manager.
When constructing the page, Windchill queries the wt.logs.LogsDirViewer MBeans in the server manager which are configured for various log directories. Out of the box, Windchill registers directories for Windchill log files (identified by the wt.logs.dir property) and for web server log files for web servers installed with Windchill (identified by the wt.webserver.logs.dir property).
After you have selected the log directories to search, you can click OK to display a list of log file names and corresponding links. Then, clicking a log file link displays the contents of the log file.
To limit the number of log file links presented or to display log file content containing specific strings, use the following fields on the page:
• To find entries within log files where the entry contains a specific string, enter the string in the Content Search String field and select appropriate qualifiers for the search:
◦ Select Match Case to return only results that match the capitalization of the string entered. For example, entering the string ERROR and selecting Match Case returns only entries where ERROR is capitalized and not entries containing the string error in lower case characters.
◦ Select Whole Words to return only results where the string is an entire word. For example, entering the string error and selecting Whole Words returns only entries where error is a word and not lines containing the string error where error is a partial word (such as ErrorCount).
◦ Select Regular Expression to return results where the entries match a regular Java expression. For example to return entries matching either ERROR or WARN and then also matching user1 in the remainder of the entry, select Regular Expression and enter the following expression in the Content Search String field:
.*(ERROR|WARN).*user1.*
To highlight the string in the log file entries that are displayed, select Highlight Matches.
|
Entering a user name as the string returns log entries relating to that user.
|
• To find log files that have a specific set of characters in their file names, enter the set of characters in the Filename Pattern field and select how the characters should be used in the filename search. The default search option is that the filename contains the characters. For example, Windchill log file names include the date that they were generated. Therefore, to find all Windchill log files from a specific day, you can enter the date in the Filename Pattern field.
• To limit the log files found to a specific time frame, enter values in the Log Age In Days: Min and Log Age In Days: Max fields. For example, to limit the search to logs modified between yesterday and four days ago, enter 1 in the Min field and 4 in the Max field.