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