Creating a filter with the Expression Builder
You can use filters to isolate parts of web traffic for a Watchpoint or reports.
Filters are built using parentheses and combinations of the following symbols: &&, ||, and !, which represent AND, OR, and NOT operators. The AND, OR, and NOT operators are interchangeable with the &&, ||, and ! operators respectively.
If you want to locate all people with "thom" at the beginning of their names, compose the following filter:
This expression represents a search for all entries with an object class of type "person" in which the common name begins with "Thom". By default, search is case-sensitive. To make the search case-insensitive, use the "ignorecase" attribute, so that replacing "thom" with "Thom" or "THOM" would yield the same results:
Search filters can be nested to any level:
((objectclass=person)&&((cn="Thomas Smith")||(cn startwith "thom" ignorecase)))
This filter looks for all entries with object class person in which the common name is either "Thomas Smith"or begins with "Thom". A logical operator should appear before the parenthesis enclosing the group of compares that it affects. You can specify the order for operators by nesting parentheses.
To create a filter
To perform this procedure, you must have Operator-level access, or higher.
- Open the Add new filter dialog.
For example, in a Real User Analyzer, point to the Administration > Watchpoint management, and click Filter library. On the Action menu, click Add new filter. - In the Name box, enter a name for the filter, such as Traffic to my application.
- Click Build a filter expression.
The Expression Builder tool opens. - In the Field list, click URI Host.
- In the Comparison list, click contains.
- In the Comparison box, type the URL of your web application (for example, www.example.com).
- Click Add, and then click Save.
The new filter is added to the list of filters. The following figure shows how to create a filter in the Expression Builder tool.
Composing a filter to identify a particular web application
To create a filter that isolates static object types
To perform this procedure, you must have Operator-level access, or higher.
Create a filter to detect objects with the following extensions: .gif, .jpg, .jpeg, .css, .js, and .png.
- In a Real User Analyzer, point to the Administration > Watchpoint management, and click Filter library.
- On the Action menu, click Add.
- In the Name box type a name for the filter, such as Static object types.
- Click Build a filter expression.
The Expression Builder tool opens. - In the Field list, click URI File Extension.
- In the Comparison list, click ends with.
- In the Comparison box, type png, and click Add.
- Click the
button.
The Reference List for the selected field opens. - Select a value that corresponds to another one of the file extensions that you want to find — for example, .jpg.
- Click Add with OR.
- Add other necessary static file extensions for the filter in the same manner.
- Click Save.
- In the Filter description box, enter Objects in the list of static file types.
- Click Save.
The new filter is added to the list of filters.
Composing a filter to identify static object types
Filters support multinational character encoding. The following figure shows an example of using Chinese characters:
Composing a filter with non-ASCII (multibyte) characters
Related topics