> For the complete documentation index, see [llms.txt](https://docs.sprinto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinto.com/monitors/audit-logs-and-evidence-trails/how-to-resolve-sprinto-check-for-archiving-azure-activity-logs.md).

# How to resolve Sprinto check for archiving Azure activity logs

### About

Sprinto Check: Azure activity logs should be archived

Upon recognizing the importance of maintaining a comprehensive record of operations within your Azure resources, Sprinto has a dedicated check to ensure the archiving Azure Activity Logs can meet compliance requirements. This feature ensures that historical data is securely stored, enabling effective investigation and troubleshooting.

### Purpose

Archiving Azure activity logs is critical for various scenarios, especially when compliance standards dictate the retention of historical records. This process allows you to investigate security incidents, identify the root cause of issues, and meet regulatory requirements.

### Procedure

Follow these steps to set up and configure the archiving of Azure activity logs:

1. Log in to the[ Azure portal](https://portal.azure.com/) using your credentials.
2. Click on Activity log in the Azure portal menu.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080187861/original/M9ip1P8hDtqZBie7dQLuR7qUBiRr5GhXiQ.png?1704433202" alt="" width="563"><figcaption></figcaption></figure>
3. Click on Export Activity Logs to initiate the configuration process.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080187875/original/K2-khzQ4fjWRDFNLxfrXLmWeIW1aFLYlNQ.png?1704433213" alt="" width="563"><figcaption></figcaption></figure>
4. Click on Add diagnostic setting to define the settings for exporting activity logs.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080187914/original/BRB_xrPWrKqw6diKgKP90qwBbKHv_5cqug.png?1704433226" alt="" width="563"><figcaption></figcaption></figure>
5. Select relevant log categories such as Administrative, Security, Policy, and Alert.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080187998/original/lv2MUMN7GkT3saXGVAPq1KBflW2lg8r4dA.png?1704433236" alt="" width="563"><figcaption></figcaption></figure>
6. Enter the desired log name as part of the configuration.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080188011/original/IDnTum1gWsiUSImTVUD8mYlXzcXIJYJp7Q.png?1704433249" alt="" width="563"><figcaption></figcaption></figure>
7. Add destination details, ideally specifying a storage account for archiving the activity logs.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080188110/original/TqrTx8IOGXQ1qqXF0WXOiYW-Jl2P4FwDYA.png?1704433283" alt="" width="563"><figcaption></figcaption></figure>
8. Click on Save to apply and save the diagnostic setting.

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080188133/original/LAy1ORpCAmVkPdwd2m2zo-cjUIBiAHvABA.png?1704433301" alt="" width="563"><figcaption></figcaption></figure>

Following these steps ensures that your Azure activity logs are configured to be archived and meet compliance requirements. The historical record of activities can be instrumental in addressing security concerns and complying with regulatory standards. Sprinto fetches the changes and sets the check status to "Passing.”

If you encounter any challenges or require further assistance with Azure Activity Logs Archiving, please reach out to [Sprinto support](mailto:www.support@sprinto.com). We're here to help!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinto.com/monitors/audit-logs-and-evidence-trails/how-to-resolve-sprinto-check-for-archiving-azure-activity-logs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
