Shape · Text

IP Parse

Splits IPv4 or IPv6 addresses and network ranges into host, family, netmask, network and broadcast address. Handy for grouping traffic by subnet.

Also known as: CIDR, subnet

How it works

Pick the IP address column; the Output prefix defaults to the column name plus an underscore. Five columns are appended: host, family (4 or 6), netmask, network and broadcast. A plain address is read as a /32 or /128; a CIDR value such as 10.0.0.5/24 gives the host and its network. A value that is not an address gives null in every part and the node reports the count. Parsing uses Python's ipaddress module, so it works offline, and runs once per distinct value.

Inputs and outputs

Inputs

  • data — Table

Outputs

  • data — Table

Settings

The Attributes panel of IP Parse, as in the app: the controls work, but nothing runs — there is no data behind it.

The same settings, as the Assistant writes them
{
  column: string
  prefix?: string
}

— accepts plain IPs and CIDR; appends <prefix>host/family (4|6)/netmask/network/broadcast; prefix defaults to "<column>_"

Example

A firewall log has a client column and you want hits per subnet. Parse client and aggregate by client_network.

clientclient_hostclient_familyclient_network
10.0.0.5/2410.0.0.5410.0.0.0/24
2001:db8::12001:db8::162001:db8::1/128