Depending on the required performance of such solution you can opt for a network switch with span port capability, or if high performance it required you can look into dedicated traffic recorders.