You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select count(Date) from flows_raw where EType = 0x0800 and IPv6CIDRToRange(DstAddr, 104).1 = toIPv6('::44.0.0.0');
Calculate the bitmask by adding 96 to the CIDR mask (i.e. /24 == 24 + 96 == 120).
If you want to filter for the 44.0.0.0/8 network, the query for the "Custom SQL" field would be IPv6CIDRToRange(DstAddr, 104).1 = toIPv6('::44.0.0.0').
For known query patterns, it would be advisable to materialize computed columns.
The text was updated successfully, but these errors were encountered:
Trivial with an IPv4, surprisingly non-trivial with IPv6 because it's a
FixedString(16)
and we can't do bitwise ops on it.ClickHouse/ClickHouse#6808
ClickHouse/ClickHouse#11245
This is the only way to do a bitwise query:
Calculate the bitmask by adding 96 to the CIDR mask (i.e.
/24 == 24 + 96 == 120
).If you want to filter for the
44.0.0.0/8
network, the query for the "Custom SQL" field would beIPv6CIDRToRange(DstAddr, 104).1 = toIPv6('::44.0.0.0')
.For known query patterns, it would be advisable to materialize computed columns.
The text was updated successfully, but these errors were encountered: