DC-1 Extend Log Retrieval Period #154
Labels
status/backlog
In backlog / validated
type/bug
Non-urgent code defect
type/gaant
Used for Gaant Visualization
Milestone
What happened?
Microsoft 365 audit log retention periods have been extended, but they vary based on the organization's licensing:
Currently, Hawk scripts only support parsing audit logs back to 90 days. This limitation prevents users from accessing audit logs older than 90 days using Hawk, even though the data is available in Microsoft 365. Hawk should be updated to support parsing audit logs up to 180 days for all users and up to 365 days for organizations with E5 licenses. The default should remain at 90 days, but users should have the option to specify longer date ranges based on their licensing.
Steps to Reproduce
Search-HawkTenantEXOAuditLog.ps1
).StartDate
parameter to a date older than 90 days ago (e.g., 150 days ago).Hawk Version
Version 3.1.0
🔧 Developer Section (For Hawk Team Members Only)
The following sections are for internal use by the Hawk development team. Users can ignore these fields.
Technical Analysis
Root cause analysis
Implementation Plan
Update Default Date Range:
StartDate
of 90 days ago.StartDate
up to 180 days ago for all licenses.StartDate
up to 365 days ago.Adjust Date Range Validation:
Get-MsolAccountSku
,Get-AzureADSubscribedSku
) to determine the licenses assigned to the tenant.StartDate
:StartDate
beyond their retention period.Provide Informative Messages:
StartDate
older than their maximum retention period, display a clear warning or error message.StartDate
within the last 180 days."Allow Advanced Overrides:
-OverrideRetention
) that allows users to specify custom date ranges.Handle Licensing Detection Gracefully:
Update Documentation:
StartDate
parameter based on licensing.Test Scripts:
Optimize Performance:
Communicate Changes to Users:
Acceptance Criteria
StartDate
of 90 days ago but allow users to specify longer date ranges based on their licensing.StartDate
older than the maximum allowed is specified, the script provides a clear error message.Additional Notes:
Testing:
Dependencies:
The text was updated successfully, but these errors were encountered: