Compute a subnet from a ipv4 field; by default emits a into a _subnet field.
Parameter | Type | Required | Default Value | Description |
---|---|---|---|---|
as | string | optional[a] | _subnet | Specifies the name of the output field. |
bits | number | required | Specifies the prefix bits to include in the subnet, for example, 23. | |
field [b] | string | required | Specifies the input field. | |
[a] Optional parameters use their default value unless explicitly set. |
subnet()
Examples
Compute subnet for ipAddress using 23bit prefix; emit into subnet field
logscale
subnet(ipAddress, bits=23, as=subnet)