Edit

Access resource logs for Microsoft Discovery resources

Microsoft Discovery application logs are stored in a dedicated Log Analytics workspace inside the Managed Resource Group (MRG) that Azure provisions for each Discovery resource. This article explains how to navigate to the MRG and open the Log Analytics workspace for a workspace, supercomputer, or bookshelf.

Note

This article covers access to application logs in MRG-based Log Analytics workspaces. For control plane audit logs, see View activity logs for Microsoft Discovery resources. For configuring log export to a storage account, see Enable audit logging for Microsoft Discovery resources.

Prerequisites

  • An Azure account with access to an active subscription containing Microsoft Discovery resources.
  • Reader role (or higher) on the Discovery resource and its associated Managed Resource Group.

Each Microsoft Discovery resource—workspace, supercomputer, or bookshelf—has an associated MRG that contains its managed infrastructure, including the Log Analytics workspace. Use the steps below to locate the MRG for the resource you want to investigate.

  1. In the Azure portal, search for Microsoft Discovery or navigate to All resources.
  2. Select the workspace you want to troubleshoot.
  3. On the workspace overview page, locate the Managed Resource Group field. It appears under the Essentials section.
  4. Select the link to open the Managed Resource Group.

Open the Log Analytics workspace

After you navigate to the MRG:

  1. In the MRG resource list, locate the resource of type Log Analytics workspace.
  2. Select it to open the workspace.
  3. In the left navigation pane, select Logs.
  4. If a query dialog appears, close it to access the full Logs query editor.

You're now in the Log Analytics Logs interface for that Discovery resource.

Explore available tables

To see the log tables available for the resource:

  1. In the left panel of the Logs interface, select the Tables tab.
  2. Expand the Custom Logs section.
  3. The custom log tables for Microsoft Discovery appear here, for example DiscoveryLogs_CL, KubeEvents_CL, or DiscoveryBookshelfLogs_CL.

Tip

You can select any table name to run a default query that fetches the most recent entries, which is useful for quickly confirming that logs are being ingested.

Adjust the time range

By default, the Logs interface queries the last 24 hours. You can change the time range using the selector at the top of the query editor, or by adding a where TimeGenerated filter directly in your KQL query:

| where TimeGenerated > ago(1h)   // Last 1 hour
| where TimeGenerated > ago(7d)   // Last 7 days

Next steps

Now that you can access the Log Analytics workspace, query logs for your specific resource: