Compute a subnet from a ipv4 field; by default emits a into a _subnet field.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | false | _subnet | Specifies the output field, defaults to _subnet . |
bits | number | true | Specifies the prefix bits to include in the subnet, e.g. 23. | |
field | string | true | Specifies the input field. [a] | |
subnet()
Examples
Compute subnet for ipAddress using 23bit prefix; emit into subnet field
logscale
subnet(ipAddress, bits=23, as=subnet)