Network Traffic

In this scenario, the widget uses the companion query function sankey() to visualize data flowing from src_ip to dst_ip.The sum() function calculates the total number of bytes sent — where the pkt_size field contains the packet size. Here is the example query:

logscale
sankey(source=src_ip, target=dst_ip, weight=sum(pkt_size))