File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,9 @@ PUT _transform/suspicious_client_ips
247
247
"filter": {
248
248
"term": { "response" : "404"}}
249
249
},
250
- "error503 " : {
251
- "filter": {
252
- "term ": { "response" : "503" }}
250
+ "error5xx " : {
251
+ "filter": {
252
+ "range ": { "response" : { "gte": 500, "lt": 600} }}
253
253
},
254
254
"timestamp.min": { "min": { "field": "timestamp" }},
255
255
"timestamp.max": { "max": { "field": "timestamp" }},
@@ -273,9 +273,10 @@ PUT _transform/suspicious_client_ips
273
273
field to synchronize the source and destination indices. The worst case
274
274
ingestion delay is 60 seconds.
275
275
<3> The data is grouped by the `clientip` field.
276
- <4> Filter aggregation that counts the occurrences of successful (`200`)
277
- responses in the `response` field. The following two aggregations (`error404`
278
- and `error503`) count the error responses by error codes.
276
+ <4> Filter aggregation that counts the occurrences of successful (`200`)
277
+ responses in the `response` field. The following two aggregations (`error404`
278
+ and `error5xx`) count the error responses by error codes, matching an exact
279
+ value or a range of response codes.
279
280
<5> This `bucket_script` calculates the duration of the `clientip` access based
280
281
on the results of the aggregation.
281
282
You can’t perform that action at this time.
0 commit comments