Skip to content

Commit 283d8cc

Browse files
Adds filters table back (#17395)
1 parent 2b96204 commit 283d8cc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/content/docs/logs/reference/filters.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,22 @@ The following table represents the comparison operators that are supported and e
1717

1818
* Values represent the data associated with fields.
1919

20-
20+
| Name | Operator Notation | String | Int | Bool | Array | Object | Example |
21+
|----------------------------|-------------------|--------|-------|-------|-------|--------|------------------------------------------------------------------------------------------------|
22+
| Equal | `eq` |||||| `{"key":"ClientRequestHost","operator":"eq","value":"example.com"}` |
23+
| Not equal | `!eq` |||||| `{"key":"ClientCountry","operator":"!eq","value":"ca"}` |
24+
| Less than | `lt` |||||| `{"key":"BotScore","operator":"lt","value":"30"}` |
25+
| Less than or equal | `leq` |||||| `{"key":"BotScore","operator":"leq","value":"30"}` |
26+
| Greater than | `gt` |||||| `{"key":"BotScore","operator":"gt","value":"30"}` |
27+
| Greater than or equal | `geq` |||||| `{"key":"BotScore","operator":"geq","value":"30"}` |
28+
| Starts with | `startsWith` |||||| `{"key":"ClientRequestPath","operator":"startsWith","value":"/foo"}` |
29+
| Ends with | `endsWith` |||||| `{"key":"ClientRequestPath","operator":"endsWith","value":"/foo"}` |
30+
| Does not start with | `!startsWith` |||||| `{"key":"ClientRequestPath","operator":"!startsWith","value":"/foo"}` |
31+
| Does not end with | `!endsWith` |||||| `{"key":"ClientRequestPath","operator":"!endsWith","value":"/foo"}` |
32+
| Contains | `contains` |||||| `{"key":"ClientRequestPath","operator":"contains","value":"/static"}` |
33+
| Does not contain | `!contains` |||||| `{"key":"ClientRequestPath","operator":"!contains","value":"/static"}` |
34+
| Value is in a set of values | `in` |||||| `{"key":"EdgeResponseStatus","operator":"in","value":[200,201]}` |
35+
| Value is not in a set of values | `!in` |||||| `{"key":"EdgeResponseStatus","operator":"!in","value":[200,201]}` |
2136

2237
The filter field has limits of approximately 30 operators and 1000 bytes. Anything exceeding this value will return an error.
2338

0 commit comments

Comments
 (0)