Skip to content

Commit f4f2414

Browse files
author
Manika Dhiman
committed
tweaks
1 parent 8726d41 commit f4f2414

File tree

1 file changed

+17
-29
lines changed

1 file changed

+17
-29
lines changed

azure-stack/hci/manage/collect-logs-via-portal.md

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
---
2-
title: Collect diagnostic logs for Azure Stack HCI using the Azure portal
3-
description: How to collect diagnostic logs using the Azure portal and share them with Microsoft.
4-
author: alkohli
5-
ms.author: alkohli
2+
title: Collect diagnostic logs for Azure Stack HCI via the Azure portal
3+
description: Learn how to collect diagnostic logs via the Azure portal and share them with Microsoft.
4+
author: ManikaDhiman
5+
ms.author: v-manidhiman
66
ms.topic: how-to
77
ms.service: azure-stack
88
ms.subservice: azure-stack-hci
9-
ms.date: 05/05/2024
9+
ms.date: 05/10/2024
1010
---
1111

12-
# Collect diagnostic logs for Azure Stack HCI using the Azure portal
12+
# Collect diagnostic logs for Azure Stack HCI via the Azure portal
1313

1414
[!INCLUDE [applies-to](../../includes/hci-applies-to-23h2.md)]
1515

16-
This article describes how to collect diagnostic logs using the Azure portal and send them to Microsoft to help identify and fix any issues with your Azure Stack HCI solution.
16+
This article describes how to collect diagnostic logs via the Azure portal and send them to Microsoft to help identify and fix any issues with your Azure Stack HCI solution.
1717

18-
For information on on-demand log collection, its benefits and prerequisites, see [] to collect diagnostic logs via PowerShell, see [Collect diagnostic logs for Azure Stack HCI](./collect-logs.md).
18+
To learn about how to collect logs via PowerShell, see [Collect diagnostic logs for Azure Stack HCI](./collect-logs.md).
1919

2020
## On-demand log collection
2121

22-
On-demand log collection involves manually collecting and sending diagnostic logs to Microsoft. You can perform on-demand log collection using any of the following methods:
22+
On-demand log collection involves manually collecting and sending diagnostic logs to Microsoft. After you collect logs, they're sent to the Kusto database. Microsoft Support can then use the information provided to locate your logs in Kusto and help you in resolving the reported issue. Microsoft retains this diagnostic data for up to 30 days and handles it as per the [standard privacy practices](https://privacy.microsoft.com/).
2323

24-
- (Recommended) Azure portal. When you collect logs and send them to Microsoft using the Azure portal, you collect logs at the cluster level. This send the default logs.
25-
- PowerShell. But if you need like specific parameters around, OK like you need to share them, you need to either like save them to an SMB share or you need to just send the supplementary logs or you only wanna send specific rules, then you still need to use PowerShell. If you want to Use the `Send-DiagnosticData` cmdlet from any node within the Azure Stack HCI cluster to collect logs and send them to Microsoft. When you run this cmdlet, the logs are temporarily copied locally. This copy is parsed, sent to Microsoft, and then deleted from your system. Microsoft retains this diagnostic data for up to 30 days and handles it as per the [standard privacy practices](https://privacy.microsoft.com/).
24+
You can perform on-demand log collection using any of the following methods:
25+
26+
- (Recommended) Azure portal. When you collect logs and send them to Microsoft using the Azure portal, you collect logs at the cluster level.
27+
28+
- PowerShell. But if you need like specific parameters around, OK like you need to share them, you need to either like save them to an SMB share or you need to just send the supplementary logs or you only wanna send specific rules, then you still need to use PowerShell. If you want to Use the `Send-DiagnosticData` cmdlet from any node within the Azure Stack HCI cluster to collect logs and send them to Microsoft. When you run this cmdlet, the logs are temporarily copied locally. This copy is parsed, sent to Microsoft, and then deleted from your system.
2629

2730
### When to use on-demand log collection
2831

@@ -43,7 +46,7 @@ Before you collect on-demand logs via the Azure portal, you must complete the fo
4346
- You must have access to an Azure Stack HCI cluster.
4447
- You must have access to Azure.
4548
- You must have installed the `AzureEdgeTelemetryAndDiagnostics` extension to collect telemetry and diagnostics information from your Azure Stack HCI system. For information about the extension, see [Azure Stack HCI telemetry and diagnostics extension overview](../concepts/telemetry-and-diagnostics-overview.md).
46-
- Review the terms and conditions for log collection.
49+
- You must review the terms and conditions for log collection.
4750

4851
## Collect logs via the Azure portal
4952

@@ -52,25 +55,10 @@ Follow these steps to collect diagnostic logs for you Azure Stack HCI cluster vi
5255
1. the Azure portal, go to the Azure Stack HCI cluster resource.
5356
1. In the left pane, under **Settings**, select **HCI diagnostics and Support**.
5457
1. On the **Troubleshoot issues and get support** pane, under the **Send Diagnostics Logs** tile, select **Go to diagnostics**.
55-
1. The **Diagnostics** tab displays the log activity, the timestamp of collected logs and their statuses. To collect logs now, select **Send logs**.
56-
1. On the **Send logs** pane on the right, select the *Log start time** and **Log end tme** by selecting a date and time from the.
58+
1. Review the **Diagnostics** tab displays the log activity, the timestamp of collected logs and their statuses. To collect logs now, select **Send logs**.
59+
1. On the **Send logs** pane on the right, select the **Log start time** and **Log end tisme**.
5760
1. Select the **Collect and upload logs** button. By selecting this, you agree to the terms and conditions of collection logs.
5861

59-
Run the `Send-DiagnosticData` cmdlet from any node on your Azure Stack HCI cluster to perform on-demand log collection.
60-
61-
Here are some important points to consider:
62-
63-
- The completion time of the `Send-DiagnosticData` cmdlet varies depending on factors, such as the roles for which logs are being collected, time duration specified, and the number of nodes in your Azure Stack HCI environment.
64-
- If you don't specify any parameters, the `Send-DiagnosticData` cmdlet collects data from all nodes for the previous one-hour duration.
65-
66-
Here's the syntax of `Send-DiagnosticData`:
67-
68-
```powershell
69-
Send-DiagnosticData [[-FilterByRole] <string[]>] [[-FromDate] <datetime>] [[-ToDate] <datetime>] [[-CollectSddc] <bool>] [<CommonParameters>]
70-
```
71-
72-
For reference information on `Send-DiagnosticData`, see the [`Send-DiagnosticData` command reference](#send-diagnosticdata-command-reference) section later in this article.
73-
7462
## Perform on-demand log collection via Windows Admin Center in the Azure portal
7563

7664
The `Diagnostics` extension in Windows Admin Center in the Azure portal enables you to perform on-demand log collection and share the logs with Microsoft.

0 commit comments

Comments
 (0)