You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/bots.rst
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2190,7 +2190,7 @@ Both parameters accept string values describing absolute or relative time:
2190
2190
2191
2191
* absolute
2192
2192
2193
-
* basically anything parseable by datetime parser, eg. "2015-09-012T06:22:11+00:00"
2193
+
* basically anything parseable by datetime parser, eg. "2015-09-12T06:22:11+00:00"
2194
2194
* `time.source` taken from the event will be compared to this value to decide the filter behavior
2195
2195
2196
2196
* relative
@@ -2200,7 +2200,7 @@ Both parameters accept string values describing absolute or relative time:
2200
2200
2201
2201
*Examples of time filter definition*
2202
2202
2203
-
* ```"not_before" : "2015-09-012T06:22:11+00:00"``` events older than the specified time will be dropped
2203
+
* ```"not_before" : "2015-09-12T06:22:11+00:00"``` events older than the specified time will be dropped
2204
2204
* ```"not_after" : "6 months"``` just events older than 6 months will be passed through the pipeline
2205
2205
2206
2206
**Possible paths**
@@ -2999,6 +2999,12 @@ The following operators may be used to match events:
2999
2999
* `:supersetof` tests if the list of values from the given key is a superset of the values specified as the argument. Example for matching hosts with at least the IoT and vulnerable tags:
* `:before` tests if the date value occurred before given time ago. The time might be absolute (basically anything parseable by pendulum parser, eg. “2015-09-12T06:22:11+00:00”) or relative (accepted string formatted like this “<integer> <epoch>”, where epoch could be any of following strings (could optionally end with trailing ‘s’): hour, day, week, month, year)
3003
+
``if time.observation :before '1 week' { ... }``
3004
+
3005
+
* `:after` tests if the date value occurred after given time ago; see `:before`
3006
+
``if time.observation :after '2015-09-12' { ... } # happened after midnight the 12th Sep``
3007
+
3002
3008
* Boolean values can be matched with `==` or `!=` followed by `true` or `false`. Example:
0 commit comments