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.
AWS 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 to Event Hub".
  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 90 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 to Event Hub" and select the "Diagnostic Setting" on which "Log Profile Retention Policy" needs to be set to at least 90 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 90 and save the changes.
  11. Repeat steps number 8 - 10 to ensure that the Activity Log export to Event Hub is configured with a retention policy of at least 90 days.

Want to scan for this risk automatically?

Get Started Now