Configuring the Host Pool Logs to be Sent to a Log Analytics Workspace

It is recommended that you create a new Log Analytics Workspace for monitoring purposes, and send all the logs that eG monitors to that workspace. If such a workspace pre-exists, then proceed to set that workspace as the destination for the host pool logs. To achieve this, use steps 5-10 of the procedure detailed below. If no such workspace is available, then do the following:

  • Use steps 1-4 of the procedure discussed below to create a new log analytics workspace.

  • Then, use steps 5-12 of the procedure to configure the logs of all monitored host pools to be sent to the new workspace you created.

  1. To create a new Log Analytics Workspace, first, login to the Microsoft Azure Portal, and use the Search text box therein to search for the string 'log analytics'. The Log Analytics Workspace option will then appear in the sear\\\ch results (see Figure 1). Click on that option.

    Selecting Log Analytics Workspace Option

    Figure 1 : Selecting the Log Analytics Workspace option

  2. Figure 2 will then appear. If one/more Log Analytics Workspaces pre-exist, then Figure 2 will reveal them. To create a new workspace, click on the Create link indicated by Figure 2.

    Clicking Create Link Log Analytics Workspaces Window

    Figure 2 : Clicking on the Create link in the Log Analytics Workspaces window

  3. Doing so will invoke Figure 3. From the Subscription drop-down in Figure 3, select the Azure Subscription for which the new workspace is being created. This should be the Microsoft Azure Subscription that you are monitoring. Next, select the Resource Group to which the chosen subscription belongs, and its Region. Finally, specify Name of the new Log Analytics Workspace.

    Creating New Log Analytics Workspace

    Figure 3 : Creating a New Log Analytics Workspace

  4. Finally, click the Review + Create button to add the new log analytics workspace.

  5. Now, proceed to set this workspace as the destination for the host pool logs. For this, click on the Host pools option as indicated by Figure 2. The existing host pools will be listed below. Click on any of the host pools.

    Clicking Host Pools Option

    Figure 4 : Clicking on the Host pools option

  1. Figure 5 will then appear displaying the properties of the host pool. Keep scrolling down the left panel of Figure 5, until a Monitoring section comes into view. Click on the Diagnostic Settings option under Monitoring (see Figure 5).

    Selecting Diagnostic Settings Option

    Figure 5 : Selecting the Diagnostic Settings option

  1. Figure 6 will then appear. Select the Add diagnostic settingoption in Figure 6.

    Clicking Add Diagnostic Setting Option

    Figure 6 : Clicking on the Add diagnostic setting option

  1. Use the Diagnostics setting page that then appears to configure the logs that are to be collected (see Figure 7).

    Adding Diagnostic Setting for Chosen Host Pool

    Figure 7 : Adding a diagnostic setting for the chosen host pool

  1. To add a diagnostic setting for the chosen host pool, first, provide a unique Diagnostic setting name.

  2. Then, under Log, select the allLogs check box, so that all activities related to the chosen host pool are logged.

  3. Next, select the Send to Log Analytics workspace check box , and then pick the Log Analytics workspace to which the logs are to be sent. Ensure that you either select the Log Analytics workspace that you created earlier in this procedure, or that Log Analytics workspace that you have used as the destination for all other logs that eG monitors.

  1. Finally, to save the configuration, click on the Save button.

  2. Make sure that you repeat steps 5-12 for every AVD host pool that you want monitored.