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
The Azure Active Directory (Azure AD) portal gives you access to three types of activity logs:
22
22
23
-
-**[Sign-ins](concept-sign-ins.md)** – Information about sign-ins and how your resources are used by your users.
24
-
-**[Audit](concept-audit-logs.md)** – Information about changes applied to your tenant such as users and group management or updates applied to your tenant’s resources.
25
-
-**[Provisioning](concept-provisioning-logs.md)** – Activities performed by the provisioning service, such as the creation of a group in ServiceNow or a user imported from Workday.
23
+
-**[Sign-ins](concept-sign-ins.md)**: Information about sign-ins and how your resources are used by your users.
24
+
-**[Audit](concept-audit-logs.md)**: Information about changes applied to your tenant such as users and group management or updates applied to your tenant’s resources.
25
+
-**[Provisioning](concept-provisioning-logs.md)**: Activities performed by a provisioning service, such as the creation of a group in ServiceNow or a user imported from Workday.
26
26
27
-
Azure AD stores the data in these logs for a limited amount of time. As an IT administrator, you can download your activity logs to have a long-term backup.
27
+
Azure AD stores the data in these logs for a limited amount of time. As an IT administrator, you can download your activity logs to have a long-term backup. This article explains how to download activity logs in Azure AD.
28
28
29
-
This article explains how to download activity logs in Azure AD.
29
+
## Prerequisites
30
30
31
-
## What you should know
31
+
The option to download the data of an activity log is available in all editions of Azure AD. You can also download activity logs using Microsoft Graph; however, downloading logs programmatically requires a premium license.
32
32
33
-
- In the Azure AD portal, you can find several entry points to the activity logs. For example, the **Activity** section on the [Users](https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/MsGraphUsers) or [groups](https://portal.azure.com/#blade/Microsoft_AAD_IAM/GroupsManagementMenuBlade/AllGroups) page. However, there is only one location that provides you with an initially unfiltered view of the logs: the **Monitoring** section on the [Azure AD](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview) page.
34
-
35
-
- Azure AD stores activity logs only for a specific period. For more information, see [How long does Azure AD store reporting data?](reference-reports-data-retention.md)
33
+
The following roles provide read access to audit logs. Always use the least privileged role, according to Microsoft [Zero Trust guidance](/security/zero-trust/zero-trust-overview).
34
+
- Reports Reader
35
+
- Security Reader
36
+
- Security Administrator
37
+
- Global Reader (sign-in logs only)
38
+
- Global Administrator
36
39
37
-
- By downloading the logs, you can control for how long logs are stored.
40
+
## Log download details
38
41
39
-
- Your download is based on the filter you have set.
42
+
Azure AD stores activity logs for a specific period. For more information, see [How long does Azure AD store reporting data?](reference-reports-data-retention.md) By downloading the logs, you can control how long logs are stored.
40
43
41
44
- Azure AD supports the following formats for your download:
42
-
43
45
-**CSV**
44
-
45
46
-**JSON**
47
+
- Timestamps in the downloaded files are based on UTC.
48
+
- For large data sets (> 250,000 records), you should use the [reporting API](/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0) to download the data.
46
49
47
-
- The timestamps in the downloaded files are always based on UTC.
48
-
49
-
- For large data sets (> 250 000 records), you should use the reporting API to download the data.
50
-
51
-
52
-
## What license do you need?
53
-
54
-
The option to download the data of an activity log is available in all editions of Azure AD.
55
-
56
-
You can also download activity logs using Microsoft Graph; however, downloading logs grammatically requires a premium incense.
57
-
58
-
59
-
## Who can do it?
60
-
61
-
While the global administrator works, you should use an account with lower privileges to perform this task. To access the audit logs, the following roles work:
62
-
63
-
- Reports Reader
64
-
- Global Reader
65
-
- Security Administrator
66
-
- Security Reader
67
-
68
-
69
-
## How to do it
70
-
71
-
72
-
**To download an activity log:**
50
+
## How to download activity logs
73
51
74
-
1. Navigate to the activity log view you care about:
You can access the activity logs from the **Monitoring** section of Azure AD or from the **Users** page of Azure AD. If you view the audit logs from the **Users** page, the filter category will be set to **UserManagement**. Similarly, if you view the audit logs from the **Groups** page, the filter category will be set to **GroupManagement**. Regardless of how you access the activity logs, your download is based on the filter you've set.
82
53
83
-
2.**Add** the required filter.
54
+
1. Navigate to the activity log you need to download.
55
+
1. Adjust the filter for your needs.
56
+
1. Select **Download**.
57
+
- For audit and sign-in logs, a window appears where you'll select the download format (CSV or JSON).
58
+
- For provisioning logs, you'll select the download format (CSV of JSON) from the Download button.
59
+
- You can change the File Name of the download.
60
+
- Select the **Download** button.
61
+
1. The download processes and sends the file to your default download location.
If your tenant has enabled the [sign-in logs preview](concept-all-sign-ins.md), more options are available after selecting **Download**. The sign-in logs preview include interactive and non-interactive user sign-ins, service principal sign-ins, and managed identity sign-ins.
70
+

90
71
91
72
## Next steps
92
73
93
-
-[Sign-ins logs in Azure AD](concept-sign-ins.md)
94
-
-[Audit logs in Azure AD](concept-audit-logs.md)
74
+
-[Integrate Azure AD logs with Azure Monitor](howto-integrate-activity-logs-with-log-analytics.md)
75
+
-[Access Azure AD logs using the Graph API](quickstart-access-log-with-graph-api.md)
0 commit comments