Release 1.3 - ...
<group> element
Defines a group of filters. The attribute "match" defines how the child filter are used. If "match" is set to "all", the condition of the group is only met if all child filters are met, creating a boolean And operation on the child filters. If "match" is set to "any", the condition of the group is met if at least one filter is met, creating a boolean Or operation on the child filters. Group filters can be nested inside group filters. The include and exclude element themselves are implemented as group elements.
The example below describes the following filter:
(contenttype = JS) OR (contenttype = CSS) OR ((channel = LOC) AND ((client = 192.168.*) OR (client = 127.0.0.1)))
Example
XML |
Copy Code
|
<hits>
<exclude>
<contenttype code="JS" />
<contenttype code="CSS" />
<group match="all">
<channel code="LOC" />
<group match="any">
<client address="192.168.*" />
<client address="127.0.0.1" />
</group>
</group>
</exclude>
</hits>
|
Attributes
Attribute name |
Required |
Description |
match |
No |
When set to "all", all the conditions inside this element must be met for this filter to become true. When set to "any", any condition inside this element that is met, is enough for this filter to become true. The default value is "any". |
negate |
No |
If set to true, the filter is inverted. The default value is false. |
Parent element
Element name |
Description |
<include> |
Describes the include element used to filter hits in Smi. |
Child elements
None.