community_id
Computes the Community ID for a network connection/flow.
Description
The community_id
function computes a unique hash digest of a network
connection according to the Community
ID
spec. The digest is useful for pivoting between multiple events that belong to
the same connection.
The src_ip
and dst_ip
parameters are required. The proto
string is also required and must be tcp
, udp
, icmp
or icmp6
. src_port
and dst_port
may only be specified if the other one is. seed
can be used to set the initial hashing seed.
Examples
Compute a Community ID from a flow 5-tuple
Compute a Community ID from a host pair
Because source and destination port are optional, it suffices to provide two IP addreses to compute a valid Community ID.