General filtering component used for filtration of flow data records.
-
Comparison operators
==,<,>,<=,>=,!=. If the comparison operator is ommited, the default comparison is==. -
The
containsoperator for substring comparison, e.g.DNSName contains "example". -
Arithmetic operations
+,-,*,/,%. -
Bitwise operations not
~, or|, and&, xor^. -
The
inoperator for list comparison, e.g.port in [80, 443]. -
The logical
and,or,notoperators.
-
Numbers can be integer or floating point. Integer numbers can also be written in their hexadecimal or binary form using the
0xor0bprefix. Floating point numbers also support the exponential notation such as1.2345e+2. A number can be explicitly unsigned using theusuffix. Numbers also support size suffixesB,k,M,G,T, and time suffixesns,us,ms,s,m,d. -
Strings are values enclosed in a pair of double quotes
". Supported escape sequences are\n,\r,\tand\". The escape sequences to write characters using their octal or hexadecimal value are also supported, e.g.\ux22or\042. -
IP addresses are written in their usual format, e.g.
127.0.0.1or1234:5678:9abc:def1:2345:6789:abcd:ef12. The shortened IPv6 version is also supported, e.g.::ff. IP addresses can also contain a suffix specifying their prefix length, e.g.10.0.0.0/16. -
MAC addresses are written in their usual format, e.g.
12:34:56:78:9a:bc. -
Timestamps use the ISO timestamp format, e.g.
2020-04-05T24:00Z.