To manage filters using the GUI Filter Manager
Purpose
Perform this procedure to create, modify, assign or delete a LogViewer filter.
Note: The Filter Manager is opened from within LogViewer, but runs as a separate applet. This enables the dragging and dropping of filters between Filter Manager and the Filters sub-tab of a lob tab.
Steps
|
|
1 |
Choose Log→Filter Manager from the LogViewer main menu. The Filter Manager applet opens.
|
2 |
To add a regular filter or a simple filter:
-
Click Add or Add Simple, as required. The Add Filter form opens.
-
Configure the Name parameter by specifying a unique name for the filter.
- Configure the required parameters that correspond to the fields in a log entry by entering regular expressions for regular filters, or just strings for simple filters as a filter criterion for each:
-
Level
-
Message
-
Thread
-
Logger
-
Timestamp
-
Platform
-
If you are configuring a simple filter, go to
Step 2
11 .
-
Test a regular expression that you enter by clicking Test beside the regular expression. The Regular Expression form opens.
-
Paste an example log entry that you want to match using the regular expression into the Example field.
-
Click on the green right-pointing arrow to test the expression. If the expression is invalid, a message is displayed to indicate the error in the expression.
-
Correct the errors in the expression.
-
Repeat
Step 2
7 and
Step 2
8 until no error message is displayed.
-
Repeat
Step 2
5 to
Step 2
9 to test additional regular expressions, if required.
-
Enable the Color parameter and click in the field beside the parameter to specify a highlight color for the matching log entries. A standard color chooser form opens.
-
Use the form to specify a color and click OK. The color chooser form closes and the Add Filter form reappears.
-
Click OK. The Add Filter form closes and the Filter Manager form lists the new filter.
|
3 |
To create a saved filter based on the current quick filter, perform the following steps:
-
Choose Log→Create from Quick Filter from the LogViewer main menu, or click Create from quick in the main tool bar. The Add Filter form opens and is populated with the quick filter match criteria.
-
Modify the match criteria as required.
-
Click OK to save the filter.
|
4 |
To create a saved filter using a log entry as a template:
-
Select a log entry.
-
Choose Log→Create from Selected from the LogViewer main menu, or click Create from entry in the main tool bar. The Add Filter form opens and is populated with the current log-entry field values as match criteria.
-
Modify the match criteria as required.
-
Click OK to save the filter.
|
5 |
To move a filter to other instances of the LogViewer:
-
To export a filter, click Export in the main tool bar, or choose Log→Filter Manager from the LogViewer main menu. The Export form opens, and allows you to export a filter to a specified file.
-
To import a filter, click Import in the main tool bar, or choose Log→Filter Manager from the LogViewer main menu. The Import form opens, and allows you to import a filter from a specified file.
-
Click OK to save the filter.
|
6 |
To make a copy of a filter, select the filter and click Copy. A copy of the filter is listed on the Filter Manager form.
|
7 |
To edit a filter, select the filter and click Edit. Configure the required parameters described in
Step 2.
|
8 |
To delete a filter, select the filter and click Delete.
End of steps |