You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to configure diagnostic settings to collect VMware syslogs for your Azure VMware Solution private cloud.
4
4
ms.topic: how-to
5
5
ms.service: azure-vmware
6
-
ms.date: 10/07/2022
6
+
ms.date: 12/07/2022
7
7
8
8
#Customer intent: As an Azure service administrator, I want to collect VMware syslogs and store it in my storage account so that I can view the vCenter Server logs and analyze for any diagnostic purposes.
9
9
@@ -22,7 +22,6 @@ In this article, you'll configure a diagnostic setting to collect VMware syslogs
22
22
>- ESXi logs
23
23
>- vCenter Server logs
24
24
>- NSX-T Data Center Edge Appliance logs
25
-
26
25
27
26
## Prerequisites
28
27
@@ -31,37 +30,88 @@ Make sure you have an Azure VMware Solution private cloud with access to the vCe
31
30
## Configure diagnostic settings
32
31
33
32
1. From your Azure VMware Solution private cloud, select **Diagnostic settings**, then **Add diagnostic settings**.
34
-
35
-
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-1.png" alt-text="Screenshot showing where to configure VMware syslogs." lightbox="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-1.png":::
33
+
34
+
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-1.png" alt-text="Screenshot showing where to configure VMware syslogs.":::
36
35
37
36
38
37
1. Select the **vmwaresyslog**, **All metrics**, and select one of the following options presented.
39
38
40
-
>[!IMPORTANT]
41
-
>The **Send to log analytics workspace** option is currently unavailable.
42
-
43
-
### Archive to storage account
39
+
### Send to Log Analytics workspace
44
40
45
-
1. In **Diagnostic setting**, select the storage account where you want to store the logs and select **Save**.
41
+
#### How to set up Log Analytics
46
42
47
-
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-2.png" alt-text="Screenshot showing the options to select for storing the syslogs." lightbox="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-2.png":::
43
+
A Log Analytics workspace:
48
44
49
-
1. Go to your **Storage accounts**, verify **Insight logs vmwarelog** has been created, select it.
50
-
51
-
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-3.png" alt-text="Screenshot showing the Insight logs vmwarelog option created and available." lightbox="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-3.png":::
45
+
* Contains your AVS private cloud logs.
52
46
47
+
* Is the workspace from which you can take desired actions, such as querying for logs.
53
48
54
-
1. Browse **Insight logs vmwarelog** to locate and download the json file to view the logs.
49
+
In this section, you’ll:
55
50
56
-
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-4.png" alt-text="Screenshot showing the drill-down path to the json file." lightbox="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-4.png":::
51
+
* Configure a Log Analytics workspace
57
52
58
-
### Stream to Microsoft Azure Event Hubs
53
+
* Create a diagnostic setting in your private cloud to send your logs to this workspace
59
54
60
-
1. In **Diagnostic setting**, under Destination details, select **Stream to an Event Hub**.
61
-
1. From the **Event Hub namespace** drop-down menu, choose where you want to send the logs, select, and **Save**.
62
-
63
-
:::image type="content" source="media/diagnostic-settings/stream-event-hub.png" alt-text="Screenshot showing the drill-down path to send the logs." lightbox="media/diagnostic-settings/stream-event-hub.png":::
55
+
#### Create a resource
56
+
57
+
1. In the Azure portal, go to **Create a resource**.
58
+
2. Search for “Log Analytics Workspace” and click **Create** -> **Log Analytics Workspace**.
59
+
60
+
:::image type="content" source="media/send-logs-to-log-analytics/marketplace.png" alt-text="Screenshot of Create a resource.":::
61
+
62
+
#### Set up your workspace
63
+
64
+
1. Enter the Subscription you intend to use, the Resource Group that’ll house this workspace. Give it a name and select a region.
65
+
2. Click **Review** + **Create**.
66
+
67
+
:::image type="content" source="media/send-logs-to-log-analytics/create-workspace.png" alt-text="Screenshot of Marketplace.":::
68
+
69
+
#### Add a diagnostic setting
70
+
71
+
Next, we add a diagnostic setting in your AVS private cloud, so it knows where to send your logs to.
72
+
73
+
:::image type="content" source="media/send-logs-to-log-analytics/private-cloud.png" alt-text="Screenshot of vh-private-cloud.":::
64
74
75
+
1. Click your AVS private cloud.
76
+
Go to Diagnostic settings on the left-hand menu under Monitoring.
77
+
Select **Add diagnostic setting**.
78
+
2. Give your diagnostic setting a name.
79
+
Select the log categories you are interested in sending to your Log Analytics workspace.
65
80
81
+
3. Make sure to select the checkbox next to **Send to Log Analytics workspace**.
82
+
Select the Subscription your Log Analytics workspace lives in and the Log Analytics workspace.
83
+
Click **Save** on the top left.
66
84
85
+
:::image type="content" source="media/send-logs-to-log-analytics/diagnostic-setting.png" alt-text="Screenshot of Diagnostics settings.":::
67
86
87
+
At this point, your Log Analytics workspace has been successfully configured to receive logs from your AVS private cloud.
88
+
89
+
#### Search and analyze logs using Kusto
90
+
91
+
Now that you’ve successfully configured your logs to go to your Log Analytics workspace, you can use that data to gain meaningful insights with Log Analytics’ search feature.
92
+
Log Analytics uses a language called the Kusto Query Language (or Kusto) to search through your logs.
93
+
94
+
For more information, see
95
+
[Data analysis in Azure Data Explorer with Kusto Query Language](/training/paths/data-analysis-data-explorer-kusto-query-language/).
96
+
97
+
### Archive to storage account
98
+
99
+
1. In **Diagnostic setting**, select the storage account where you want to store the logs and select **Save**.
100
+
101
+
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-2.png" alt-text="Screenshot showing the options to select for storing the syslogs.":::
102
+
103
+
2. Go to your **Storage accounts**, verify **Insight logs vmwarelog** has been created, select it.
104
+
105
+
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-3.png" alt-text="Screenshot showing the Insight logs vmwarelog option created and available.":::
106
+
107
+
108
+
3. Browse **Insight logs vmwarelog** to locate and download the json file to view the logs.
109
+
110
+
:::image type="content" source="media/diagnostic-settings/diagnostic-settings-log-analytics-workspace-4.png" alt-text="Screenshot showing the drill-down path to the json file.":::
111
+
112
+
### Stream to Microsoft Azure Event Hubs
113
+
114
+
1. In **Diagnostic setting**, under Destination details, select **Stream to an Event Hub**.
115
+
2. From the **Event Hub namespace** drop-down menu, choose where you want to send the logs, select, and **Save**.
116
+
117
+
:::image type="content" source="media/diagnostic-settings/stream-event-hub.png" alt-text="Screenshot showing the drill-down path to send the logs.":::
0 commit comments