Sun Management Center 3.6.1 User's Guide

Viewing Log Files

You can view log files or portions of log files. You can also monitor log messages as the messages are added to the log files.

ProcedureTo View the System Log File Messages

  1. In the Details window, click the View Logs tab.

  2. Choose System Log from the Log File menu.

  3. Click the Log File field, and select Syslog.

    The System Log messages are displayed.

    To refresh the display and view any new messages, click Reload.

ProcedureTo Filter Your Log Request

You can apply a filter to display only those messages that match the date range and text pattern that you specify. In addition, you can limit the size of the search by specifying the maximum number of matches to report.

  1. With the View Logs tab selected in the Details window, click the Filter button.

    The Message Filter Options dialog box is displayed, as shown in the following figure.

    Figure 6–8 Message Filter Options Dialog Box

    Message filter options window shows options for defining filters
as described in the following steps.

  2. Select the start date for the first log message that you want to view.

  3. Select the start time for the first log message that you want to view.

  4. Select the end date for the last log message that you want to view.

  5. Select the end time for the last log message that you want to view.

  6. Type the text pattern to be matched in the Text Pattern to Match field.

    Use a text pattern that is unique to the type of message in which you are interested.

  7. Select Forward or Backward to specify the direction of the message search through the log file.

    To begin searching from the end of the log file, select Backward. To search from the beginning, select Forward.

  8. (Optional) Type the maximum number of log messages that should be matched in the Maximum matches to report field.

    If you enter zero (0), all matching messages are reported, up to a maximum of 100 messages.

  9. To filter and reload your log messages and close this window, click the OK button.

ProcedureTo Monitor Log Messages

Monitoring enables you to view new log messages as the messages occur. Each new message that arrives is highlighted.

  1. Click the Monitor button on the View Logs screen.

    The Monitor Filter Options dialog box is displayed, as shown in the following figure.

    Figure 6–9 Monitor Filter Messages Dialog Box

    Monitor filter options window shows options as described in the
following steps.

  2. Select Enable Log File Monitoring to enable log file monitoring.

  3. To display only currently monitored log messages, select Clear Old Monitored Messages.

  4. Type the text pattern to be matched in the Text Pattern to Match field.

    You can use a UNIX regular expression. For information about regular expressions, refer to the regex(1F) man page.

    Use a text pattern that is unique to the type of message in which you are interested.

  5. To monitor your log messages and close this window, click the OK button.

ProcedureTo Find a Log Message

You can search for a specific character sequence within a set of messages after the set has been loaded and displayed in the Messages For area.

  1. Click the View Logs tab in the Details window.

  2. Type the specific character sequence that you want to find in the Find field.


    Note –

    Wildcard searches using an asterisk (*) character, are not supported in the View Logs find feature. To search for a message that contains the asterisk character, precede the character with a backslash (\), for example, \*.


  3. Press Return to search the log messages for that sequence.

    The first matching message is highlighted.

  4. Click the down arrow or up arrow to continue your search and find additional occurrences of the matching sequence.

ProcedureTo View the Sun Management Center Log File Messages

  1. With the View Logs tab selected in the Details window, choose Sun Management Center Log from the Log File menu.

    A list of log files displays as a submenu.

  2. Select the Sun Management Center log file that you want to view.

    The messages for the selected log file are displayed.

  3. To apply filters to the information, click the Filter button. Then, provide the filter parameters in the Message Filter Options dialog box.

    The information is displayed using the filter that you selected.

ProcedureTo Refresh Log Messages

    To refresh and reload the currently filtered set of log messages, click the Reload button.

ProcedureTo View Other Log File Messages

  1. With the View Logs tab selected in the Details window, choose Other Log from the Log File menu.


    Note –

    The Other Log option is available only if the Logview ACL module (Local Applications) is loaded.


  2. To filter the log information, click the Filter button. Then, provide the filter parameters in the Message Filter Options dialog box.

    The information is displayed using the filter that you selected.