After running NTA for awhile and finding that Netflix traffic hogs a lot of bandwidth, I wanted to find out just how much. In order to isolate the Netflix related rows in SQL I queried this:
SELECT TOP 10000 FlowCorrelation_Source_FlowCorrelation.FullHostname AS Full_Hostname_A,
SUM(NetflowConversationSummary.TotalBytes) AS SUM_of_Bytes_Transferred,
SUM(NetflowConversationSummary.TotalBytes) AS Total_Bytes
FROM
((NetflowConversationSummary LEFT OUTER JOIN FlowCorrelation FlowCorrelation_Source_FlowCorrelation ON (NetflowConversationSummary.SourceIPSort = FlowCorrelation_Source_FlowCorrelation.IPAddressSort)) LEFT OUTER JOIN FlowCorrelation FlowCorrelation_Dest_FlowCorrelation ON (NetflowConversationSummary.DestIPSort = FlowCorrelation_Dest_FlowCorrelation.IPAddressSort)) INNER JOIN Nodes ON (NetflowConversationSummary.NodeID = Nodes.NodeID)
WHERE
( DateTime BETWEEN 41539 AND 41570 )
AND
(
(FlowCorrelation_Source_FlowCorrelation.FullHostname LIKE '%ix.nflxvideo.net%')
)
GROUP BY FlowCorrelation_Source_FlowCorrelation.FullHostname, FlowCorrelation_Dest_FlowCorrelation.FullHostname, Nodes.Caption, Nodes.NodeID, FlowCorrelation_Source_FlowCorrelation.IPAddress
You'll see in the WHERE that I isolate Netflix by %ix.nflxvideo.net%. This is because each entry into the table has a slightly different ip address. No non-netflix related row would contain ix.nflxvideo.net.
So now that I have every instance of Netflix (assumedly), I want to tally up the TotalBytes column (which now only contains netflix related rows) to get a total amount of usage. I'm not sure how to do this. Theoretically I should be able to do a SUM, but I only get the big list that is in the below screenshot:
I want to tally up Sum_of_Bytes_Transferred. The Total_Bytes column is just my started attempt to accomplish the tally. So far I am stuck.
Thanks in advance. I'm sorry if this is the wrong forum.