Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 2.81 KB

log-profile-retention-policy.md

File metadata and controls

29 lines (24 loc) · 2.81 KB

CloudSploit

AZURE / Monitor / Log Profile Retention Policy

Quick Info

Plugin Title Log Profile Retention Policy
Cloud AZURE
Category Monitor
Description Ensures that Log Profiles have a long retention policy.
More Info Log retention policies should be configured with sufficient retention to aid in investigation of prior security incidents and for compliance purposes.
AZURE Link https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-overview-activity-logs#export-the-activity-log-with-a-log-profile
Recommended Action Ensure that the Activity Log export to Event Hub is configured with a retention policy of at least 365 days.

Detailed Remediation Steps

  1. Log into the Microsoft Azure Management Console.
  2. Select the "Search resources, services, and docs" option at the top and search for Monitor.
  3. Scroll down the left navigation panel and choose "Activity Log" option in the "Monitor" page.
  4. On the "Monitor - Activity log" click on the "Export Activity Logs".
  5. On the "Diagnostics settings" page select the diagnostic setting for which "Retention policy" needs to be verified and click on "Edit setting" option.
  6. On the "Diagnostics settings" page select the "Storage account" option and check the "retention policy".If log "retention policy" is less than 365 days then it's not as per the Azure Recommendations.
  7. Repeat steps number 2 - 6 to verify other Azure accounts for "Log Profile Retention Policy".
  8. Navigate to "Monitor" and click on the "Activity Log" under "Monitor page", click on the "Export Activity Logs" and select the "Diagnostic Setting" on which "Log Profile Retention Policy" needs to be set to at least 365 days.
  9. Click on the "Edit Setting" option next to the "Diagnostic setting".
  10. Click on the "Storage Account", select the "Region" and enter the "Retention(days)" to 365 and save the changes.
  11. Repeat steps number 8 - 10 to ensure that the Activity Log Export Activity Logs is configured with a retention policy of at least 365 days.