-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove improperly formatted JSON from Get-HawkTenantAdminInboxRuleHis…
…tory, Get-HawkTenantAdminInboxRuleRemoval, Get-HawkTenantRBACChange, Get-HawkUserAdminAudit, Search-HawkTenantEXOAuditLog
- Loading branch information
1 parent
61d6906
commit 4d8e5e7
Showing
9 changed files
with
3 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,6 @@ | |
Path: \<user> | ||
Description: Raw data of all changes made to the user. | ||
File: User_Changes_Raw.json | ||
Path: \<user> | ||
Description: Raw JSON data from audit logs. | ||
File: User_Changes_Raw.txt | ||
Path: \<user> | ||
Description: Human readable format of raw audit data. | ||
.EXAMPLE | ||
Get-HawkUserAdminAudit -UserPrincipalName [email protected] | ||
|
@@ -77,10 +69,6 @@ | |
New-Item -Path $UserFolder -ItemType Directory -Force | Out-Null | ||
} | ||
|
||
# Write raw AuditData to files for verification/debugging | ||
$RawJsonPath = Join-Path -Path $UserFolder -ChildPath "User_Changes_Raw.json" | ||
$UserChanges | Select-Object -ExpandProperty AuditData | Out-File -FilePath $RawJsonPath | ||
|
||
# Parse and format the changes using Get-SimpleUnifiedAuditLog | ||
$ParsedChanges = $UserChanges | Get-SimpleUnifiedAuditLog | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,6 @@ | |
Path: \<User> | ||
Description: Raw item-level operations data in CSV and JSON formats | ||
File: ExchangeItem_Raw.json | ||
Path: \<User> | ||
Description: Raw JSON dump of item operations audit data | ||
ExchangeItemGroup Records: | ||
File: ExchangeItemGroup_Simple_{User}.csv/.json | ||
Path: \<User> | ||
|
@@ -50,10 +46,6 @@ | |
Path: \<User> | ||
Description: Raw access pattern data in CSV and JSON formats | ||
File: ExchangeItemGroup_Raw.json | ||
Path: \<User> | ||
Description: Raw JSON dump of access pattern audit data | ||
.EXAMPLE | ||
Get-HawkUserMailboxAuditing -UserPrincipalName [email protected] | ||
|
@@ -116,10 +108,6 @@ | |
if ($itemLogs.Count -gt 0) { | ||
Out-LogFile ("Found " + $itemLogs.Count + " ExchangeItem events.") -Information | ||
|
||
# Write raw JSON dump | ||
$RawJsonPath = Join-Path -Path $UserFolder -ChildPath "ExchangeItem_Raw.json" | ||
$itemLogs | Select-Object -ExpandProperty AuditData | Out-File -FilePath $RawJsonPath | ||
|
||
# Process and output flattened data | ||
$ParsedItemLogs = $itemLogs | Get-SimpleUnifiedAuditLog | ||
if ($ParsedItemLogs) { | ||
|
@@ -141,10 +129,6 @@ | |
if ($groupLogs.Count -gt 0) { | ||
Out-LogFile ("Found " + $groupLogs.Count + " ExchangeItemGroup events.") -Information | ||
|
||
# Write raw JSON dump | ||
$RawJsonPath = Join-Path -Path $UserFolder -ChildPath "ExchangeItemGroup_Raw.json" | ||
$groupLogs | Select-Object -ExpandProperty AuditData | Out-File -FilePath $RawJsonPath | ||
|
||
# Process and output flattened data | ||
$ParsedGroupLogs = $groupLogs | Get-SimpleUnifiedAuditLog | ||
if ($ParsedGroupLogs) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters