Selector filter.-
The simplest filter is a selector filter. The selector filter will match a specific dimension with a specific value. Selector filters can be used as the base filters for more complex Boolean expressions of filters. The grammar for a SELECTOR filter is as follows:
{ "type": "selector", "dimension": "client_mac", "value": "8c:58:77:0b:56:fc" }
Regular expression filter.-
The regular expression filter is similar to the selector filter, but using regular expressions. It matches the specified dimension with the given pattern. The pattern can be any standard Java regular expression.
{ "type": "regex", "dimension": "http_host", "pattern": "youtube\.com" }
Logical expression filters.-
You can have different logical expression: AND, OR and NOT
{ "type": "and", "fields": [ { "type": "selector", "dimension": "client_mac", "value": "8c:58:77:0b:56:fc" }, { "type": "regex", "dimension": "src", "pattern": "^10\\.13\\." } ] }
{ "type": "or", "fields": [ { "type": "selector", "dimension": "client_mac", "value": "8c:58:77:0b:56:fc" }, { "type": "selector", "dimension": "client_mac", "value": "83:53:44:4b:56:fd" } ] }
{ "type": "not", "field": { "type": "selector", "dimension": "client_mac", "value": "8c:58:77:0b:56:fc" } }