final OrFilter udpTcpFlows = new OrFilter();
udpTcpFlows.addFilter(udpFlows);
udpTcpFlows.addFilter(tcpFlows);
statsRules.add(new FlowStatsRule(udpTcpFlows, new FileOutputStream("flowsUdpTcp.csv", true)));
statsRules.add(new IpDirectionsRule(udpTcpFlows, new FileOutputStream("flowsIpDirections.csv", true)));
} catch (FileNotFoundException ex) {
Logger.getLogger(FlowStats.class.getName()).log(Level.SEVERE, null, ex);
}