我在 Orion Report Writer for Solarwinds Netflow Traffic Analyzer 中运行 SQL 查询,并尝试为来自相同通用来源的特定对话添加数据使用量。在这种情况下,它是 netflix。我的查询取得了一些进展。
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 'ipv4_1.lagg0%')
)
GROUP BY FlowCorrelation_Source_FlowCorrelation.FullHostname, FlowCorrelation_Dest_FlowCorrelation.FullHostname, Nodes.Caption, Nodes.NodeID, FlowCorrelation_Source_FlowCorrelation.IPAddress
所以我有一个输出过滤除 netflix 会话(Full_Hostname_A)和每个会话的总使用量(Sum_Of_Bytes_Transferred)之外的所有内容
我想将 Sum_Of_Bytes_Transferred 相加以获得列出的所有 netflix 会话的总使用量,该会话将输出到 Total_Bytes。我创建了 Total_Bytes 列,但不知道如何输出总计。
对于一些要求的澄清,以下是上述查询的输出:
我希望将 Total_Bytes 列全部加起来为一个数字。