How filters process special values
Filters in BMC Real End User Experience Monitoring Software Edition can process various types of data. The following sections describe how the system handles certain values in a filter expression:
Null values
You can also use a the null modifier in a filter.
If the data represented by an identifier cannot be accessed for some reason, the identifier returns null. A null value can be compared with only another null value. If you try any other type of comparison with null, the expression evaluates to false.
IP addresses
The system compares IP addresses as if they were integers. You can use standard operators, or you can create more precise queries by using the match keyword and the mask modifier.
Comparing IP addresses by using standard operators
Filters can evaluate IP addresses by using basic, range, and set operators.
Examples of IP address evaluation using standard operators
Comparing IP addresses using IP ranges
The match keyword is an IP-specific operator that enables you to compare an IP address against an IP address range or block. You can specify an IP range or block in the following ways:
(IPv4 only)Wildcards — You can substitute an asterisk, *, for one or more octets in an IPv4 address.
CIDR notation — You can use CIDR notation to specify an IP range. CIDR notation cannot be combined with wildcards or subnet masks.
Masks — You can use the mask modifier to define subnet masks. Masks cannot be combined with wildcards or CIDR notation.
String values
The system differentiates strings from other value types through the use of double quotation marks. Any value enclosed in double quotation marks is treated as a string literal. If double quotation marks are not present, the value is assumed to match its context — that is, if the value is involved in a comparison with a known IP address, the value is assumed to be an IP address.
Character literals
The following character literals can be used in strings:
- \n (linefeed)
- \r (carriage return)
- \f (formfeed)
- \b (backspace)
- \t (tab)
- \ \ (backslash)
- \" (double quotation marks)
- \' (single quotation marks)
Octal characters
Octal characters are represented by a backward slash followed by a three-character octal code, as follows: \nnn.
Hexadecimal characters
Hexadecimal characters are represented by a backward slash followed by x and a four-character hexadecimal code, as follows:
\xA5FF
Related topics