Adds IN_ and OUT_BYTES to historical flows tables

This commit is contained in:
Simone Mainardi 2016-06-15 15:57:37 +02:00
parent d6bc2ce91a
commit 96e964b14e
3 changed files with 20 additions and 2 deletions

View file

@ -45,7 +45,7 @@ function getInterfaceTopFlows(interface_id, version, host_or_profile, peer, l7pr
sql = "select IP_SRC_ADDR, IP_DST_ADDR"
end
follow = " ,L4_SRC_PORT,L4_DST_PORT,VLAN_ID,PROTOCOL,FIRST_SWITCHED,LAST_SWITCHED,PACKETS,IN_BYTES + OUT_BYTES as BYTES,idx,L7_PROTO,INFO"
follow = " ,L4_SRC_PORT,L4_DST_PORT,VLAN_ID,PROTOCOL,FIRST_SWITCHED,LAST_SWITCHED,PACKETS,IN_BYTES + OUT_BYTES as BYTES,IN_BYTES,OUT_BYTES,idx,L7_PROTO,INFO"
if ntop.isPro() then follow = follow..",PROFILE" end
follow = follow.." from flowsv"..version.." where FIRST_SWITCHED <= "..end_epoch.." and FIRST_SWITCHED >= "..begin_epoch