|
| 1 | +--- |
| 2 | +title: Send your Azure VMware Solution logs to Log Analytics |
| 3 | +description: Learn about sending logs to log analytics. |
| 4 | +ms.topic: how-to |
| 5 | +ms.service: azure-vmware |
| 6 | +ms.date: 11/15/2022 |
| 7 | +--- |
| 8 | + |
| 9 | +# Send your Azure VMware Solution logs to Log Analytics |
| 10 | + |
| 11 | +This article shows you how to send Azure VMware Solution logs to Azure Monitor Log Analytics. You can send logs from your AVS private cloud to your Log Analytics workspace, allowing you to take advantage of the Log Analytics feature set, including: |
| 12 | + |
| 13 | +• Powerful querying capabilities with Kusto Query Language (KQL) |
| 14 | + |
| 15 | +• Interactive report-creation capability based on your data, using Workbooks |
| 16 | + |
| 17 | +...without having to get your logs out of the Microsoft ecosystem! |
| 18 | + |
| 19 | +In the rest of this article, we’ll show you how easy it is to make this happen. |
| 20 | + |
| 21 | +## How to set up Log Analytics |
| 22 | + |
| 23 | +A Log Analytics workspace: |
| 24 | + |
| 25 | +• Contains your AVS private cloud logs. |
| 26 | + |
| 27 | +• Is the workspace from which you can take desired actions, such as querying for logs. |
| 28 | + |
| 29 | +In this section, you’ll: |
| 30 | + |
| 31 | +• Configure a Log Analytics workspace |
| 32 | + |
| 33 | +• Create a diagnostic setting in your private cloud to send your logs to this workspace |
| 34 | + |
| 35 | +### Create a resource |
| 36 | + |
| 37 | +1. In the Azure portal, go to **Create a resource**. |
| 38 | +2. Search for “Log Analytics Workspace” and click **Create** -> **Log Analytics Workspace**. |
| 39 | + |
| 40 | +:::image type="content" source="media/send-logs-to-log-analytics/marketplace.png" alt-text="Screenshot of Create a resource."::: |
| 41 | + |
| 42 | +### Set up your workspace |
| 43 | + |
| 44 | +1. Enter the Subscription you intend to use, the Resource Group that’ll house this workspace. Give it a name and select a region. |
| 45 | +1. Click **Review** + **Create**. |
| 46 | + |
| 47 | +:::image type="content" source="media/send-logs-to-log-analytics/create-workspace.png" alt-text="Screenshot of Marketplace."::: |
| 48 | + |
| 49 | +### Add a diagnostic setting |
| 50 | + |
| 51 | +Next, we add a diagnostic setting in your AVS private cloud, so it knows where to send your logs to. |
| 52 | + |
| 53 | +:::image type="content" source="media/send-logs-to-log-analytics/private-cloud.png" alt-text="Screenshot of vh-private-cloud."::: |
| 54 | + |
| 55 | +1. Click your AVS private cloud. |
| 56 | +Go to Diagnostic settings on the left-hand menu under Monitoring. |
| 57 | +Select **Add diagnostic setting**. |
| 58 | +2. Give your diagnostic setting a name. |
| 59 | +Select the log categories you are interested in sending to your Log Analytics workspace. |
| 60 | + |
| 61 | +3. Make sure to select the checkbox next to **Send to Log Analytics workspace**. |
| 62 | +Select the Subscription your Log Analytics workspace lives in and the Log Analytics workspace. |
| 63 | +Click **Save** on the top left. |
| 64 | + |
| 65 | +:::image type="content" source="media/send-logs-to-log-analytics/diagnostic-setting.png" alt-text="Screenshot of Diagnostics settings."::: |
| 66 | + |
| 67 | +At this point, your Log Analytics workspace has been successfully configured to receive logs from your AVS private cloud. |
| 68 | + |
| 69 | +## Search and analyze logs using Kusto |
| 70 | + |
| 71 | +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. |
| 72 | +Log Analytics uses a language called the Kusto Query Language (or Kusto) to search through your logs. |
| 73 | + |
| 74 | +For more information, see |
| 75 | +[Data analysis in Azure Data Explorer with Kusto Query Language](/training/paths/data-analysis-data-explorer-kusto-query-language/). |
0 commit comments