監控流量
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
以下各節將說明 Flow Analyzer 可提供的各種協助。
情境:瞭解用戶端-伺服器流量
身為網路管理員,您想瞭解誰啟動了連線,並以用戶端-伺服器依附元件形式,以圖表呈現流量資料。
存取 Flow Analyzer
您可以前往 Google Cloud 主控台,然後前往 Flow Analyzer。如果未在子網路中啟用 Log Analytics,您就不會看到任何資料。
您必須在相關子網路中啟用虛擬私有雲流量記錄。記錄檔必須儲存在您用於查看 Flow Analyzer 的記錄檔值區。請注意,您必須升級這個記錄檔值區,才能使用 Log Analytics。
請按照 Flow Analyzer 頁面上的操作說明,啟用 Log Analytics。
使用所選屬性建構並執行查詢
- 在「流量分析器」頁面上,選取流量匯總資料,並選取要查看資料的時間範圍。
- 由於您想知道是誰啟動了連線,因此請在「Source」窗格中,選取「Organize flows by」方塊中的下列欄位:VPC 子網路、IP 和 Port。
「最高資料流量」圖表和「所有資料流量」表格會顯示查詢結果。
查看詳細資料,瞭解用戶端-伺服器流量
這張圖表會顯示與其他流量相比,時間內流量最高的前五名。您可以使用這張圖表找出趨勢,例如流量激增。
您可以使用時間挑選器指定所需的時間範圍。請降低校正週期的值,以取得必要的詳細資料。
如果流量出現特定尖峰,請使用「流程詳細資料」頁面進一步瞭解任何特定流程。
查看特定流量流量詳細資料
在「所有資料流量」表格中,按一下要調查的流量的「詳細資料」。隨即顯示的「流程詳細資料」頁面會顯示符合所選篩選條件的所有資源,以及這些資源的流量。
您可以使用虛擬私有雲流量記錄檔中的其他欄位或屬性,進一步細查查詢結果。在「流量詳細資料」頁面上,「深入查看」面板會提供所選流量流的詳細資料,包括來源、目的地、流量和可能的深入查看選項等資訊。
您可以使用任何可用的額外欄位,進一步細分所選流量流。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Monitor your traffic flows\n\nThe following sections describe various ways that Flow Analyzer can\nhelp you.\n\nScenario: Understand client-server traffic\n------------------------------------------\n\nAs a network administrator, you want to understand who initiated the connection\nand visualize the traffic flow data in the form of client-server dependency.\n\n### Access Flow Analyzer\n\nYou access Google Cloud console and go to Flow Analyzer. If\nLog Analytics isn't enabled on the subnet, you'll see no data.\n\nVPC Flow Logs must be enabled on the relevant subnet. The logs must be\nstored in the log bucket that you're using to view Flow Analyzer.\nAlso note that this log bucket must be upgraded to use Log Analytics.\n\nFollow the instructions on the Flow Analyzer page to enable\nLog Analytics.\n\n### Build and run the query using the selected properties\n\n1. On the Flow Analyzer page, select the traffic aggregation and the time range for which you need to view the data.\n2. Because you want to know who initiated the connection, in the **Source** pane, select the following fields in the **Organize Flows by** box: **VPC subnetwork, IP, and Port**.\n\nThe **Highest data flows** chart and the **All data flows** table display the\nquery results.\n\n### View the details to understand the client-server traffic\n\nThe chart displays the top five highest traffic flows over time, when\ncompared with the rest of the traffic. Spot trends such as traffic spikes using\nthis chart.\n\nYou can use the time selector to specify the required time range.\nDecrease the value of the alignment period to get the required details.\n\nIf there are specific spikes in the traffic, learn more about any specific flow\nusing the **Flow details** page.\n\n### View specific traffic flow details\n\nIn the **All data flows** table, click **Details** for the flow you'd like to\ninvestigate. The **Flow details** page that appears shows all the\nresources matching the selected filters and the traffic of these resources.\n\nYou can further drill down the query results using the remaining fields or\nproperties available in VPC Flow Logs. On the **Flow details** page,\nthe **drill down** panel provides details about the selected traffic flow\nincluding information such as the source, destination, traffic, and possible\ndrill down options.\n\nYou can drill down further by splitting a selected traffic flow using any\navailable extra field."]]