Skip to content

Commit c617e15

Browse files
authored
Merge pull request #291689 from cherylmc/images
freshness update for bastion diagnostics
2 parents 8543427 + dce803a commit c617e15

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

articles/bastion/diagnostic-logs.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to enable and work with Azure Bastion diagnostic logs.
44
author: cherylmc
55
ms.service: azure-bastion
66
ms.topic: how-to
7-
ms.date: 02/03/2020
7+
ms.date: 12/09/2024
88
ms.author: cherylmc
99

1010
---
@@ -13,40 +13,41 @@ ms.author: cherylmc
1313

1414
As users connect to workloads using Azure Bastion, Bastion can log diagnostics of the remote sessions. You can then use the diagnostics to view which users connected to which workloads, at what time, from where, and other such relevant logging information. In order to use the diagnostics, you must enable diagnostics logs on Azure Bastion. This article helps you enable diagnostics logs, and then view the logs.
1515

16-
>[!NOTE]
17-
>To view all resource logs available for Bastion, select each of the resource logs. If you exclude the 'All Logs' setting, you will not see all the available resource logs.
16+
> [!NOTE]
17+
> To view all resource logs available for Bastion, select each of the resource logs. If you exclude the 'All Logs' setting, you will not see all the available resource logs.
1818
1919
## <a name="enable"></a>Enable the resource log
2020

2121
1. In the [Azure portal](https://portal.azure.com), go to your Azure Bastion resource and select **Diagnostics settings** from the Azure Bastion page.
2222

23-
![Screenshot that shows the "Diagnostics settings" page.](./media/diagnostic-logs/1diagnostics-settings.png)
24-
2. Select **Diagnostics settings**, then select **+Add diagnostic setting** to add a destination for the logs.
23+
1. Select **Diagnostics settings**, then select **+Add diagnostic setting** to add a destination for the logs.
2524

26-
![Screenshot that shows the "Diagnostics settings" page with the "Add diagnostic setting" button selected.](./media/diagnostic-logs/2add-diagnostic-setting.png)
27-
3. On the **Diagnostics settings** page, select the type of storage account to be used for storing diagnostics logs.
25+
1. On the **Diagnostics settings** page, select your desired settings. For example:
2826

29-
![Screenshot of the "Diagnostics settings" page with the section to select a storage location highlighted.](./media/diagnostic-logs/3add-storage-account.png)
30-
4. When you complete the settings, it will look similar to this example:
27+
| Setting | Value |
28+
|---|---|
29+
| Category groups | audit or allLogs |
30+
| Categories | Bastion Audit Logs |
31+
| Destination details | Select the storage account where you want to store the logs. |
32+
| Metrics | AllMetrics|
3133

32-
![example settings](./media/diagnostic-logs/4example-settings.png)
34+
1. When you complete the settings, select **Save**.
3335

3436
## <a name="view"></a>View diagnostics log
3537

3638
To access your diagnostics logs, you can directly use the storage account that you specified while enabling the diagnostics settings.
3739

3840
1. Navigate to your storage account resource, then to **Containers**. You see the **insights-logs-bastionauditlogs** blob created in your storage account blob container.
3941

40-
![diagnostics settings](./media/diagnostic-logs/1-navigate-to-logs.png)
41-
2. As you go inside the container, you see various folders in your blob. These folders indicate the resource hierarchy for your Azure Bastion resource.
42+
1. As you go inside the container, you see various folders in your blob. These folders indicate the resource hierarchy for your Azure Bastion resource.
4243

43-
![add diagnostic setting](./media/diagnostic-logs/2-resource-h.png)
44-
3. Navigate to the full hierarchy of your Azure Bastion resource whose diagnostics logs you wish to access/view. The 'y=', 'm=', 'd=', 'h=' and 'm=' indicate the year, month, day, hour, and minute respectively for the resource logs.
44+
1. Navigate to the full hierarchy of your Azure Bastion resource whose diagnostics logs you wish to access/view. The 'y=', 'm=', 'd=', 'h=' and 'm=' indicate the year, month, day, hour, and minute respectively for the resource logs.
4545

46-
![select storage location](./media/diagnostic-logs/3-resource-location.png)
47-
4. Locate the json file created by Azure Bastion that contains the diagnostics log data for the time-period navigated to.
46+
:::image type="content" source="./media/diagnostic-logs/3-resource-location.png" alt-text="Screenshot shows the storage location." lightbox="./media/diagnostic-logs/3-resource-location.png":::
4847

49-
5. Download the json file from your storage blob container. An example entry of successful login from the json file is shown below for reference:
48+
1. Locate the json file created by Azure Bastion that contains the diagnostics log data for the time-period navigated to.
49+
50+
1. Download the json file from your storage blob container. The following example shows the entry of successful sign in from the json file:
5051

5152
```json
5253
{
@@ -76,7 +77,7 @@ To access your diagnostics logs, you can directly use the storage account that y
7677
}
7778
```
7879

79-
Below is an example entry of unsuccessful login (e.g. due to incorrect username/password) from the json file:
80+
The following example shows the entry of unsuccessful sign in (for example, due to incorrect username/password) from the json file:
8081

8182
```json
8283
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)