移轉至工作區型 Application Insights 資源

本文將逐步引導您將傳統ApplicationInsights資源移轉至以工作區為基礎的資源。

工作區型資源:

  • 支援 Application Insights 與 Log Analytics 之間的完整整合。
  • 將 Application Insights 遙測傳送至常見的 Log Analytics 工作區
  • 可讓您存取 Azure 監視器 的最新功能,同時將應用程式、基礎結構和平台記錄保留在合併位置。
  • 跨資源啟用一般 Azure 角色型訪問控制
  • 不需要跨應用程式/工作區查詢。
  • 適用於所有商業區域和 Azure 美國政府
  • 從傳統資源移轉之後,不需要變更檢測密鑰。

重要

警告

傳統 Application Insights 內的連續匯出將於 2024 年 5 月 15 日關閉。 在此日期之後,將無法再使用您的連續匯出組態。

從2024年4月29日開始,截至2024年5月1日,連續出口將進行維護,準備關閉。 在此期間,將會無法使用連續匯出。 在此期間導出的任何數據,都將在 2024 年 5 月 1 日維護期間結束時匯出。 視您要匯出的數據量而定,可能需要 72 小時才能完全復原。

提供的新功能

工作區型 Application Insights 資源可讓您利用 Azure 監視器和 Log Analytics 的最新功能:

  • 客戶管理的金鑰 會使用只有您有權存取的加密金鑰,為您的數據提供待用加密。
  • Azure Private Link 可讓您使用私人端點,安全地將 Azure 平臺即服務 (PaaS) 連結到您的虛擬網路。
  • 為分析工具和快照除錯程式 自備記憶體 (BYOS) 可讓您完全掌控:
    • 待用加密原則。
    • 存留期管理原則。
    • 與 Application Insights Profiler 和快照調試程式相關聯的所有數據的網路存取。
  • 相較於隨用隨付價格,定額層可讓您節省 30% 的費用。 否則,Log Analytics 中隨用隨付數據擷取和數據保留的計費方式與 Application Insights 中的計費方式類似。
  • 數據會透過Log Analytics串流擷取更快擷取。

注意

移轉至以工作區為基礎的 Application Insights 資源之後,來自多個 Application Insights 資源的遙測可能會儲存在常見的 Log Analytics 工作區中。 您仍然可以從特定的Application Insights資源提取數據,如了解記錄查詢一節中所述。

移轉程序

當您移轉至工作區型資源時,不會將任何資料從傳統資源的儲存體傳送至新的工作區型儲存體。 選擇移轉將會變更新資料寫入至 Log Analytics 工作區的位置,同時保留對傳統資源資料的存取權。

您的傳統資源數據會保存,並受限於傳統 Application Insights 資源的保留設定。 移轉後擷取的所有新數據都會受限於 相關聯 Log Analytics 工作區的保留設定 ,該工作區也支援 依數據類型的不同保留設定。

移轉程序是永久的,無法反轉。 將資源遷移至以工作區為基礎的 Application Insights 之後,它一律會是工作區型資源。 移轉之後,您可以視需要變更目標工作區。

如果您不需要移轉現有的資源,而是想要建立以工作區為基礎的 Application Insights 資源,請參閱 以工作區為基礎的資源建立指南

注意

移轉程式不應引入任何應用程式停機或重新啟動,也不會變更您現有的檢測密鑰或 連接字串。

必要條件

  • 將存取控制模式設定為 [使用資源或工作區許可權] 設定的 Log Analytics 工作區:

    • 工作區型 Application Insights 資源與設定為專用 工作區型許可權 設定的工作區不相容。 若要深入瞭解Log Analytics工作區訪問控制,請參閱 訪問控制模式指引
    • 如果您還沒有現有的Log Analytics工作區,請參閱 Log Analytics工作區建立檔
  • 連續導出 與工作區型資源不相容,而且必須停用。 完成移轉之後,您可以使用診斷設定,將數據封存設定為記憶體帳戶,或串流至 Azure 事件中樞。

    警告

    • 診斷設定使用與連續匯出不同的匯出格式/結構描述。 移轉將中斷與 Azure 串流分析的任何現有整合。
    • 診斷設定匯出可能會增加成本。 如需詳細資訊,請參閱<從 Application Insights 匯出遙測> (英文)。
  • 在 設定 Usage 底>檢查目前的保留設定,以及 Log Analytics 工作區的預估成本>數據保留。 此設定會影響在移轉 Application Insights 資源之後儲存任何新內嵌數據的時間長度。

    注意

    • 如果您目前儲存的 Application Insights 數據超過預設 90 天,而且想要在移轉後保留這個較長的保留期間,請調整工作區 保留設定
    • 如果您在移轉前選取數據擷取到傳統 Application Insights 資源的數據保留時間超過 90 天,數據保留會持續透過該 Application Insights 資源計費,直到數據超過保留期間為止。
    • 如果已啟用 [設定>使用量] 和 [估計成本>數據保留] 底下的 Application Insights 實例保留設定,請使用該設定來控制仍儲存在傳統資源記憶體中之遙測數據的保留天數。
  • 瞭解 以工作區為基礎的 Application Insights 使用量和成本。

移轉您的資源

若要將傳統 Application Insights 資源移轉至以工作區為基礎的資源:

  1. 從 Application Insights 資源中,選取左側功能表中 [設定] 標題下的 [屬性]。

    顯示 [設定] 標題下 [屬性] 的螢幕快照。

  2. 選取 [ 遷移至工作區型]。

    顯示 [移轉至工作區型] 按鈕的螢幕快照。

  3. 選取您想要儲存所有未來內嵌 Application Insights 遙測的 Log Analytics 工作區。 它可以是相同訂用帳戶中的Log Analytics工作區,或共用相同 Microsoft Entra 租使用者的不同訂用帳戶。 Log Analytics 工作區不一定與 Application Insights 資源位於相同的資源群組中。

    注意

    移轉至工作區型資源最多可能需要 24 小時的時間,但程式通常較快。 當您等候移轉程式完成時,依賴透過 Application Insights 資源存取數據。 完成後,您會看到儲存在Log Analytics工作區數據表中的新數據。

    顯示移轉精靈 UI 的螢幕快照,其中包含選取目標工作區的選項。

    移轉資源之後,您會在 [概觀] 窗格中看到對應的工作區資訊。

    顯示工作區名稱的螢幕快照。

    選取藍色連結文字會帶您前往相關聯的Log Analytics工作區,您可以在其中利用新的統一工作區查詢環境。

提示

移轉至以工作區為基礎的 Application Insights 資源之後,請使用 工作區的每日上限 來限制擷取和成本,而不是 Application Insights 中的上限。

了解記錄查詢

我們為 Application Insights 傳統資源查詢、活頁簿和 Application Insights 體驗內的記錄型警示提供完整的回溯相容性。

若要針對 以工作區為基礎的新數據表結構/架構撰寫查詢,您必須先移至 Log Analytics 工作區。

若要確保查詢順利執行,請驗證查詢的欄位是否符合 新的架構欄位

您可能有多個 Application Insights 資源,這些資源會將遙測儲存在一個 Log Analytics 工作區中,但您想要從一個特定的 Application Insights 資源查詢數據。 您有兩個選擇:

  • 移至 Application Insights 資源,然後選取 [ 記錄] 索引卷標。此索引標籤中的所有查詢都會自動從選取的 Application Insights 資源提取數據。
  • 移至您設定為 Application Insights 遙測目的地的 Log Analytics 工作區,然後選取 [ 記錄 ] 索引卷標。若要查詢來自特定 Application Insights 資源的數據,請篩選所有應用程式特定數據表中可用的內 _ResourceId 建屬性。

當您直接從 Log Analytics 工作區查詢時,只會看到在移轉後內嵌的數據。 若要查看傳統 Application Insights 數據和移轉後擷取的新數據,請在統一查詢體驗中,使用移轉 Application Insights 資源內的 [ 記錄 ] 索引卷標。

注意

如果您在移轉至工作區型模型之後重新命名Application Insights資源,Application Insights 記錄 索引標籤就不會再顯示重新命名之前收集的遙測。 您可以在相關聯 Log Analytics 資源的 [記錄] 索引標籤上看到所有舊的和新數據。

藉由擷取類型識別 Application Insights 資源

使用下列腳本,透過擷取類型來識別ApplicationInsights資源。

範例

Get-AzApplicationInsights -SubscriptionId 'Your Subscription ID' | Format-Table -Property Name, IngestionMode, Id, @{label='Type';expression={
    if ([string]::IsNullOrEmpty($_.IngestionMode)) {
        'Unknown'
    } elseif ($_.IngestionMode -eq 'LogAnalytics') {
        'Workspace-based'
    } elseif ($_.IngestionMode -eq 'ApplicationInsights' -or $_.IngestionMode -eq 'ApplicationInsightsWithDiagnosticSettings') {
        'Classic'
    } else {
        'Unknown'
    }
}}

程式設計資源移轉

本節可協助您移轉資源。

Azure CLI

若要存取預覽 Application Insights Azure CLI 命令,您必須先執行:

 az extension add -n application-insights

如果您未執行 az extension add 命令,您會看到指出的錯誤訊息 az : ERROR: az monitor: 'app-insights' is not in the 'az monitor' command group. See 'az monitor --help'.

現在您可以執行下列程式碼來建立您的 Application Insights 資源:

az monitor app-insights component update --app
                                         --resource-group
                                         [--ingestion-access {Disabled, Enabled}]
                                         [--kind]
                                         [--query-access {Disabled, Enabled}]
                                         [--retention-time]
                                         [--workspace]

範例

az monitor app-insights component update --app your-app-insights-resource-name -g your_resource_group --workspace "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test1234/providers/microsoft.operationalinsights/workspaces/test1234555"

如需此命令的完整 Azure CLI 文件,請參閱 Azure CLI 文件

Azure PowerShell

從 8.0 版或更新版本的 Azure PowerShell 開始,您可以使用 Update-AzApplicationInsights PowerShell 命令,將傳統 Application Insights 資源移轉至以工作區為基礎的資源。

若要使用此 Cmdlet,您必須指定您想要更新之 Application Insights 資源的名稱和資源群組。 IngestionMode使用 和 WorkspaceResoruceId 參數,將傳統實例移轉至以工作區為基礎的實例。 如需此 Cmdlet 參數和語法的詳細資訊,請參閱 Update-AzApplicationInsights

範例

# Get the resource ID of the Log Analytics workspace
$workspaceResourceId = (Get-AzOperationalInsightsWorkspace -ResourceGroupName "rgName" -Name "laName").ResourceId

# Update the Application Insights resource with the workspace parameter
Update-AzApplicationInsights -Name "aiName" -ResourceGroupName "rgName" -IngestionMode LogAnalytics -WorkspaceResourceId $workspaceResourceId

Azure 資源管理員範本

本節提供範本。

警告

在執行移轉範本之前,請確定您已從資源中移除所有連續匯出設定。 請參閱 必要條件

範本檔案

{
    "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "name": {
            "type": "string"
        },
        "type": {
            "type": "string"
        },
        "regionId": {
            "type": "string"
        },
        "tagsArray": {
            "type": "object"
        },
        "requestSource": {
            "type": "string"
        },
        "workspaceResourceId": {
            "type": "string"
        }
    },
    "resources": [
        {
            "name": "[parameters('name')]",
            "type": "microsoft.insights/components",
            "location": "[parameters('regionId')]",
            "tags": "[parameters('tagsArray')]",
            "apiVersion": "2020-02-02-preview",
            "properties": {
                "ApplicationId": "[parameters('name')]",
                "Application_Type": "[parameters('type')]",
                "Flow_Type": "Redfield",
                "Request_Source": "[parameters('requestSource')]",
                "WorkspaceResourceId": "[parameters('workspaceResourceId')]"
            }
        }
    ]
}

參數檔案

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "type": {
            "value": "web"
        },
        "name": {
            "value": "customresourcename"
        },
        "regionId": {
            "value": "eastus"
        },
        "tagsArray": {
            "value": {}
        },
        "requestSource": {
            "value": "Custom"
        },
        "workspaceResourceId": {
            "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my_resource_group/providers/microsoft.operationalinsights/workspaces/myworkspacename"
        }
    }
}

修改相關聯的工作區

建立以工作區為基礎的 Application Insights 資源之後,您可以修改相關聯的 Log Analytics 工作區。

從 Application Insights 資源窗格中,選取 [屬性>變更工作區>Log Analytics 工作區]。

常見問題集

本節提供常見問題的答案。

如果我未將 Application Insights 傳統資源遷移至以工作區為基礎的資源,會發生什麼情況?

從 2024 年 5 月開始,Microsoft 會開始自動分階段將傳統資源移轉至工作區型資源,此移轉過程將持續數月。 我們無法提供特定資源、訂用帳戶或區域將在何時移轉的近似日期。

我們強烈建議手動移轉至工作區型資源,其起始方式是在 Azure 入口網站 的傳統 Application Insights 資源 [概觀] 窗格中選取淘汰通知橫幅。 此程式通常牽涉到選擇將用來儲存應用程式資料之 Log Analytics 工作區的單一步驟。 如果您使用連續匯出,則必須另外移轉至診斷設定,或先停用此功能。

如果您不想讓傳統資源自動移轉至工作區型資源,您可以刪除或手動移轉資源。

移轉的成本是否有任何影響?

通常沒有任何差異,但有兩個例外狀況。

  • 透過舊版 Application Insights 定價模型每月免費接收 1 GB 的 Application Insights 資源將不再收到免費數據。
  • 在 2018 年 4 月之前的基本定價層中,Application Insights 資源會繼續以與 2018 年 4 月之前的相同非區域價格點計費。 在該時間之後建立的Application Insights資源,或轉換成以工作區為基礎的資源,將會收到目前的區域定價。 如需屬於您貨幣與區域的目前定價,請參閱 Application Insights 定價

移轉至工作區型 Application Insights 提供了許多選項,可進一步 優化成本,包括 Log Analytics 承諾層專用叢集基本記錄

遙測上限如何運作?

您可以在 Log Analytics 工作區上設定每日上限。

沒有嚴格的計費上限可用。

以擷取為基礎的取樣如何運作?

擷取型取樣沒有任何變更。

移轉期間收集的數據是否有差距?

否。 我們會在查詢期間合併數據。

舊記錄查詢是否繼續運作?

是的,他們繼續工作。

已釘選計量和記錄圖表的儀錶板是否會在移轉後繼續運作?

是的,他們繼續工作。

移轉是否會影響AppInsights API存取數據?

否。 移轉不會影響對數據的現有 API 存取。 移轉之後,您可以使用稍微不同的架構,直接從工作區存取數據。

即時計量或其他監視體驗是否有任何影響?

否。 不會影響 即時計量 或其他監視體驗。

移轉后連續匯出會發生什麼事?

若要繼續進行自動匯出,您必須先移轉至 診斷設定 ,才能移轉至以工作區為基礎的資源。 診斷設定會在移轉至工作區型 Application Insights 時進行。

如何? 確保使用 Terraform 成功移轉 App Insights 資源?

如果您使用 Terraform 來管理 Azure 資源,請務必先使用最新版本的 Terraform azurerm 提供者,再嘗試升級 App Insights 資源。 使用舊版的提供者,例如 3.12 版,可能會導致在建立以工作區為基礎的 Application Insights 資源之前,先刪除傳統元件。 這可能會導致先前的數據遺失,而且需要使用新的 連接字串 和檢測密鑰值來更新受監視應用程式中的設定。

若要避免此問題,請務必使用最新版本的 Terraform azurerm 提供者 3.89 版或更高版本,藉由發出適當的 ARM 呼叫,將 App Insights 傳統資源升級至工作區型資源,同時保留所有舊數據和 連接字串/檢測密鑰值,以執行適當的移轉步驟。

我仍然可以使用舊的 API 以程序設計方式建立 Application Insights 資源嗎?

為了回溯相容性,呼叫用來建立Application Insights資源的舊 API 將會繼續運作。 這些呼叫最終都會建立以工作區為基礎的 Application Insights 資源和 Log Analytics 工作區來儲存數據。

我們強烈建議更新至 新的 API ,以更妥善地控制資源建立。

在移至以工作區為基礎的 AI 之前,我應該先移轉傳統 Application Insights 上的診斷設定嗎?

是,建議您先在傳統ApplicationInsights資源上移轉診斷設定,再轉換至以工作區為基礎的ApplicationInsights。 它可確保診斷設定的持續性和相容性。

疑難排解

本節提供常見問題的疑難排解秘訣。

存取模式

錯誤訊息:「 選取的工作區是以工作區為基礎的存取模式設定。 某些應用程式 效能監視器 (APM) 功能可能會受到影響。 選取另一個工作區,或在工作區設定中允許以資源為基礎的存取。 您可以使用 CLI 覆寫此錯誤。

若要讓工作區型 Application Insights 資源正常運作,您必須將目標 Log Analytics 工作區的訪問控制模式變更為 [資源] 或 [工作區許可權 ] 設定。 此設定位於 [屬性>存取控制] 模式下的Log Analytics工作區 UI 中。 如需指示,請參閱 Log Analytics 設定訪問控制模式指引。 如果您的訪問控制模式設定為獨佔 [需要工作區許可權 ] 設定,則透過入口網站移轉體驗的移轉仍會遭到封鎖。

如果您因目前目標工作區的安全性原因而無法變更存取控制模式,請建立新的Log Analytics工作區以用於移轉。

連續匯出

錯誤訊息:「 必須在繼續之前停用連續導出。 移轉之後,請使用診斷 設定 進行導出。」

工作區型資源不支援舊版 的連續導出 功能。 在移轉之前,您必須啟用診斷設定並停用連續匯出。

  1. 在您的傳統 Application Insights 資源上啟用診斷 設定

  2. 從 Application Insights 資源檢視的 [設定] 標題底下,選取 [連續匯出]。

    顯示 [連續匯出] 功能表項的螢幕快照。

  3. 選取停用

    顯示 [連續匯出停用] 按鈕的螢幕快照。

    • 選取 [ 停用] 之後,您可以返回移轉 UI。 如果 [ 編輯連續匯出 ] 頁面提示您未儲存您的設定,請選取 [ 確定]。 此提示與停用或啟用連續匯出無關。

    • 成功將 Application Insights 資源移轉至工作區型之後,您可以使用診斷設定來取代用來提供之連續導出的功能。 選取 [診斷設定>],在 Application Insights 資源中新增診斷設定。 您可以選取所有數據表或數據表子集,以封存至記憶體帳戶或串流以 Azure 事件中樞。 如需診斷設定的詳細資訊,請參閱 Azure 監視器診斷設定指引

保留設定

警告訊息:「 您的自定義 Application Insights 保留設定不會套用至傳送至工作區的數據。 您必須個別重新設定這些專案。

在移轉之前,您不需要進行任何變更。 此訊息會警示您目前的 Application Insights 保留設定未設定為預設的 90 天保留期間。 此警告訊息表示您可能想要在移轉並開始內嵌新數據之前修改Log Analytics工作區的保留設定。

您可以在 Log Analytics UI 中檢查 Log Analytics 目前在 設定> Usage 和估計成本>數據保留下的 Log Analytics 保留設定。 此設定會影響在移轉 Application Insights 資源之後儲存任何新內嵌數據的時間長度。

工作區型資源變更

在引進 工作區型 Application Insights 資源之前,Application Insights 數據會與 Azure 監視器中的其他記錄數據分開儲存。 兩者都是以 Azure 數據總管為基礎,並使用相同的 Kusto 查詢語言 (KQL)。 以工作區為基礎的 Application Insights 資源數據會儲存在 Log Analytics 工作區中,以及其他監視數據和應用程式數據。 這種安排可簡化您的設定。 您可以更輕鬆地分析多個解決方案的數據,並使用工作區的功能。

傳統數據結構

Log Analytics 工作區的結構會在Log Analytics工作區概觀說明。 對於傳統應用程式,數據不會儲存在Log Analytics工作區中。 它會使用相同的查詢語言。 您可以使用 Azure 入口網站 中的相同 Log Analytics 工具來建立和執行查詢。 傳統應用程式的數據項會彼此分開儲存。 一般結構與工作區型應用程式相同,但數據表和數據行名稱不同。

注意

傳統 Application Insights 體驗包含資源查詢、活頁簿和記錄型警示的回溯相容性。 若要查詢或檢視以 工作區為基礎的新數據表結構或架構,請先移至 Log Analytics 工作區。 在預覽期間,選取 [Application Insights] 窗格中的 [記錄 ] 可讓您存取傳統 Application Insights 查詢體驗。 如需詳細資訊,請參閱 查詢範圍

此圖顯示 Application Insights 的 Azure 監視器記錄結構。

資料表結構

舊版數據表名稱 新增數據表名稱 描述
availabilityResults AppAvailabilityResults 可用性測試的摘要數據。
browserTimings AppBrowserTimings 用戶端效能的相關數據,例如處理傳入數據所花費的時間。
相依性 AppDependencies 從應用程式呼叫至透過 TrackDependency()記錄的其他元件(包括外部元件)。 範例是呼叫 REST API 或資料庫或文件系統。
customEvents AppEvents 應用程式所建立的自定義事件。
customMetrics AppMetrics 應用程式所建立的自定義計量。
pageViews AppPageViews 每個網站檢視與瀏覽器資訊有關的數據。
performanceCounters AppPerformanceCounters 支援應用程式的計算資源效能測量。 例如 Windows 性能計數器。
requests AppRequests 應用程式收到的要求。 例如,系統會針對 Web 應用程式收到的每個 HTTP 要求記錄個別的要求記錄。
例外狀況 AppExceptions 應用程式運行時間擲回的例外狀況。 擷取伺服器端和用戶端 (瀏覽器) 例外狀況。
traces AppTraces 透過透過記錄 TrackTrace()的應用程式程式代碼/記錄架構所發出的詳細記錄(追蹤)。

警告

先等候Log Analytics中的新遙測,再依賴它。 開始移轉之後,遙測會先移至傳統ApplicationInsights。 遙測擷取會在24小時內切換至Log Analytics。 完成後,Log Analytics 會只擷取新的遙測。

資料表結構描述

下列各節顯示傳統屬性名稱與以工作區為基礎的 Application Insights 屬性名稱之間的對應。 使用這項資訊,以使用舊版數據表轉換任何查詢。

大部分的數據行名稱都與不同的大寫相同。 KQL 區分大小寫,因此您必須變更每個數據行名稱,以及現有查詢中的數據表名稱。 除了大寫之外,還有變更的數據行會反白顯示。 即使您是工作區型資源,您仍然可以在 Application Insights 資源的 [記錄 ] 窗格中使用傳統 Application Insights 查詢。 當您從 Log Analytics 工作區體驗的內容中查詢時,需要新的屬性名稱。

AppAvailabilityResults

舊版數據表:availabilityResults

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
duration real DurationMs real
id 字串 Id 字串
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 String
location 字串 Location 字串
message 字串 訊息 字串
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
performanceBucket 字串 PerformanceBucket 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
size real 大小 real
success 字串 成功 Bool
timestamp Datetime TimeGenerated Datetime
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppBrowserTimings

舊版數據表:browserTimings

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
NAME 字串 名稱 Datetime
networkDuration real NetworkDurationMs real
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
performanceBucket 字串 PerformanceBucket 字串
processingDuration real ProcessingDurationMs real
receiveDuration real ReceiveDurationMs real
sdkVersion 字串 SDKVersion 字串
sendDuration real SendDurationMs real
session_Id 字串 工作階段識別碼 字串
timestamp Datetime TimeGenerated Datetime
totalDuration real TotalDurationMs real
URL 字串 Url 字串
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppDependencies

舊版數據表:相依性

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
資料 字串 資料 字串
duration real DurationMs real
id 字串 Id 字串
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 String
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
performanceBucket 字串 PerformanceBucket 字串
resultCode 字串 ResultCode 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
success 字串 成功 Bool
目標 字串 Target 字串
timestamp Datetime TimeGenerated Datetime
type 字串 DependencyType 字串
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppEvents

舊版數據表:customEvents

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
timestamp Datetime TimeGenerated Datetime
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppMetrics

舊版數據表:customMetrics

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
iKey 字串 IKey 字串
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
timestamp Datetime TimeGenerated Datetime
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串
value real (已移除)
valueCount int ItemCount int
valueMax real ValueMax real
valueMin real ValueMin real
valueSum real ValueSum real

注意

舊版的 Application Insights SDK 可用來在計量預先匯總中報告標準偏差 (valueStdDev)。 因為計量分析中的採用很輕,因此已移除欄位,且不再由 SDK 匯總。 如果 Application Insights 數據收集端點收到該值,則會在擷取期間卸除該值,且不會傳送至 Log Analytics 工作區。 如果您想要在分析中使用標準偏差,請使用對 Application Insights 原始事件的查詢。

AppPageViews

舊版數據表:pageViews

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
duration real DurationMs real
id 字串 Id 字串
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 String
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
performanceBucket 字串 PerformanceBucket 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
timestamp Datetime TimeGenerated Datetime
URL 字串 Url 字串
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppPerformanceCounters

舊版數據表:performanceCounters

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
category 字串 類別 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
計數器 字串 (已移除)
customDimensions dynamic 屬性 動態
iKey 字串 IKey 字串
instance 字串 執行個體 字串
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
NAME 字串 名稱 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
timestamp Datetime TimeGenerated Datetime
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串
value real real

AppRequests

舊版數據表:要求

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 動態
customMeasurements dynamic 測量 動態
duration real DurationMs Real
id 字串 Id String
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 String
NAME 字串 名稱 String
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
performanceBucket 字串 PerformanceBucket String
resultCode 字串 ResultCode String
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
來源 字串 來源 String
success 字串 成功 Bool
timestamp Datetime TimeGenerated Datetime
URL 字串 Url String
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppExceptions

舊版數據表:例外狀況

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
assembly 字串 組件 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 dynamic
customMeasurements dynamic 測量 dynamic
詳細資料 dynamic 詳細資料 dynamic
handledAt 字串 HandledAt 字串
iKey 字串 IKey 字串
innermostAssembly 字串 InnermostAssembly 字串
innermostMessage 字串 InnermostMessage 字串
innermostMethod 字串 InnermostMethod 字串
innermostType 字串 InnermostType 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
message 字串 訊息 字串
method 字串 方法 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
outerAssembly 字串 OuterAssembly 字串
outerMessage 字串 OuterMessage 字串
outerMethod 字串 OuterMethod 字串
outerType 字串 OuterType 字串
problemId 字串 ProblemId 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
severityLevel int SeverityLevel int
timestamp Datetime TimeGenerated Datetime
type 字串 ExceptionType 字串
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

AppTraces

舊版數據表:追蹤

ApplicationInsights 類型 LogAnalytics 類型
appId 字串 ResourceGUID 字串
application_Version 字串 AppVersion 字串
appName 字串 _ResourceId 字串
client_Browser 字串 ClientBrowser 字串
client_City 字串 ClientCity 字串
client_CountryOrRegion 字串 ClientCountryOrRegion 字串
client_IP 字串 ClientIP 字串
client_Model 字串 ClientModel 字串
client_OS 字串 ClientOS 字串
client_StateOrProvince 字串 ClientStateOrProvince 字串
client_Type 字串 用戶端類型 字串
cloud_RoleInstance 字串 AppRoleInstance 字串
cloud_RoleName 字串 AppRoleName 字串
customDimensions dynamic 屬性 dynamic
customMeasurements dynamic 測量 dynamic
iKey 字串 IKey 字串
itemCount int ItemCount int
itemId 字串 _ItemId 字串
itemType 字串 型別 字串
message 字串 訊息 字串
operation_Id 字串 OperationId 字串
operation_Name 字串 OperationName 字串
operation_ParentId 字串 ParentId 字串
operation_SyntheticSource 字串 OperationSyntheticSource 字串
sdkVersion 字串 SDKVersion 字串
session_Id 字串 工作階段識別碼 字串
severityLevel int SeverityLevel int
timestamp Datetime TimeGenerated Datetime
user_AccountId 字串 UserAccountId 字串
user_AuthenticatedId 字串 UserAuthenticatedId 字串
user_Id 字串 UserId 字串

下一步