More Info:

Auditing retention period should be greater than defined days. Default 90 days.

Risk Level

Low

Address

Security

Compliance Standards

ISO27001, CISAZURE, CBP, HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the short auditing retention period for SQL servers in Azure, follow these steps:

  1. Log in to the Azure Portal and go to the SQL Server that you want to remediate.

  2. Click on the “Auditing” option in the left-hand menu.

  3. In the “Auditing” section, click on “Diagnostic settings”.

  4. Click on the “Add diagnostic setting” button.

  5. In the “Add diagnostic setting” window, give a name for the new diagnostic setting.

  6. Under “Destination details”, select “Log Analytics” or “Event Hub” as the destination.

  7. If you choose “Log Analytics”, select the Log Analytics workspace that you want to use.

  8. Under “Categories”, select the “SQLSecurityAuditEvents” category.

  9. Under “Retention (days)”, set the retention period to the desired number of days.

  10. Click on the “Save” button to save the diagnostic setting.

Once the diagnostic setting is saved, the SQL server will start sending the audit logs to the destination you selected. The audit logs will be retained for the number of days you specified in the retention period.