Skip to content

Commit 9de75c2

Browse files
Add an aggregator for IPv4 and IPv6 subnets (#82410)
Parameters accepted by the aggregator include: * prefix_length (integer, required): defines the network size of the subnet mask; * is_ipv6 (boolean, optional, default: false): defines whether the prefix applies to IPv6 (true) or IPv4 (false) IP addresses; * min_doc_count (integer, optional, default: 1): defines the minimum number of documents for a bucket to be returned in the results; * append_prefix_length (boolean, optional, default: false): defines if the prefix length is appended to the IP address key when returning results; * keyed (boolean, optional, default: false): defines whether the result is returned keyed or as an array of buckets; Each bucket returned by the aggregator represents a different subnet. IPv4 subnets also include a netmask field set to the subnet mask value (i.e. "255.255.0.0" for a /16 subnet). Related to: #57964 and elastic/kibana#68424
1 parent 6dba334 commit 9de75c2

File tree

15 files changed

+3075
-2
lines changed

15 files changed

+3075
-2
lines changed

docs/changelog/82410.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 82410
2+
summary: Add an aggregator for IPv4 and IPv6 subnets
3+
area: Aggregations
4+
type: enhancement
5+
issues: []

docs/reference/aggregations/bucket.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ include::bucket/global-aggregation.asciidoc[]
4848

4949
include::bucket/histogram-aggregation.asciidoc[]
5050

51+
include::bucket/ipprefix-aggregation.asciidoc[]
52+
5153
include::bucket/iprange-aggregation.asciidoc[]
5254

5355
include::bucket/missing-aggregation.asciidoc[]

0 commit comments

Comments
 (0)