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
Copy file name to clipboardExpand all lines: articles/bastion/diagnostic-logs.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to enable and work with Azure Bastion diagnostic logs.
4
4
author: cherylmc
5
5
ms.service: azure-bastion
6
6
ms.topic: how-to
7
-
ms.date: 02/03/2020
7
+
ms.date: 12/09/2024
8
8
ms.author: cherylmc
9
9
10
10
---
@@ -13,40 +13,41 @@ ms.author: cherylmc
13
13
14
14
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.
15
15
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.
18
18
19
19
## <aname="enable"></a>Enable the resource log
20
20
21
21
1. In the [Azure portal](https://portal.azure.com), go to your Azure Bastion resource and select **Diagnostics settings** from the Azure Bastion page.
22
22
23
-

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.
25
24
26
-

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:
28
26
29
-

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. |
1. When you complete the settings, select **Save**.
33
35
34
36
## <aname="view"></a>View diagnostics log
35
37
36
38
To access your diagnostics logs, you can directly use the storage account that you specified while enabling the diagnostics settings.
37
39
38
40
1. Navigate to your storage account resource, then to **Containers**. You see the **insights-logs-bastionauditlogs** blob created in your storage account blob container.
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.
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.
0 commit comments