# Log View

The SM Log Viewer shows the error log from the remote SM host. At the top of the page controls are provided to change the log text shown. A status line displays the file name, number of lines, number of matched search results, and range of lines in the file being viewed. The File Name field shows the path of the log file on the remote host. The tooltip to display the entire path is available for file paths that exceed the name filed width. The main text portion of the window displays the lines of text taken from the log file (see Lines/Page below).

## Filters

Check boxes are used to filter lines of text containing `SM`, `PM`, `FE`, `WARN`, and `ERROR`. When a checkbox is selected, all lines containing the selected filter are displayed and highlighted in a different color; lines that do not contain the filtered text are not displayed.

## Refresh

The Lines/Page control allows you to select the number of lines to display on each page as the file is traversed. The Total Lines field shows the total number of lines in the log file and is updated as lines are added.

Note: After you enter or select a number of lines, click the to refresh the viewer with the new lines.

## Search

The Search feature is accessible through the actions described below. The # Matches field below it indicates the number of search results found.

- Search Field

  - Click the search field to highlight text.

  - Double-clicking on the search field removes highlights from existing text and places a cursor at the end of the text.

  - Enter text to search for and then click to perform search.

  - Click to remove highlights from search results and to clear the search field.

- Marked Search

  - In the main text window, double-click on a word to highlight all instances of the word.

  - Selected word also appears in the search field.

  - Click to remove highlights from search results and to clear the search field.

- Selected Search

  - Copy/Paste

    1. While holding down the left mouse button, drag the mouse pointer across a word, phrase, line, or multiple lines to select the desired search entry.

    2. Right-click on the text area to display the context menu and select Copy.

    3. Right-click in the search field to display the context menu and select Paste.

    4. Click or press ENTER to perform search.

    5. Click to remove highlights from search results and to clear the search field.

    Note: You can also use Ctrl+C to copy to the clipboard, and Ctrl+V to paste from the clipboard.

  - Highlighting

    1. While holding down the left mouse button, drag the mouse pointer across a word, phrase, line, or multiple lines to select the desired search entry.

    2. Right-click on the text area to display the context menu and select Highlight to highlight all instances of the selected text.

    3. Click to remove highlights from search results and to clear the search field.

## Paging

The Paging control allows you to move backward and forward through the log file in line increments specified in the Lines/Page field. Highlighting of text imposed by the Filter, Highlight, or Search functions remains in effect as the page view changes. The Line Range field, located below the controls, shows the range of lines currently being viewed. This range remains unchanged if lines are filtered and show a subset of lines designated by Lines/Page or range.

## Configuration

The Configuration control allows you to log out of the Log Viewer and redefine the host credentials and log file name. Two modes are available when logging into the Log Viewer:

- Auto Config – Only the user name and password fields are available and it is assumed that the Host, Port, and Log File path information is correct.

- Custom Config – In this mode, all fields are editable and the user must provide the necessary login information.

With this feature, the log on any host can be viewed regardless of the host to which the subnet window is connected.