Manage AD audit event cleanup

View as Markdown

Audit event cleanup removes eligible historical event details and associated original content stored in Ping64, according to event-category rules and retention days. It does not remove already generated aggregate statistics, so statistical totals can differ from the remaining visible details. This operation cleans platform data; it does not clear domain-controller security logs and cannot restore lost records.

Separate from platform data cleanup: AD audit cleanup and platform data cleanup have separate settings and execution records. Disabling AD automatic cleanup does not mean platform data cleanup is disabled. Check each set of rules, schedules and execution status; confirm submitted or ongoing tasks separately.

Cleanup deletes data. Rules apply to matching records across domains in the current organization, not just the domain currently being viewed. Confirm every affected domain, category and retention requirement before execution. Cancelling a run cannot restore records already deleted. When evidence must be retained, first confirm available backups and a recovery arrangement under the organization's retention and backup policies; do not assume automatic recovery.

Prepare

  1. Confirm the AD domain management license. Viewing rules and execution records, changing rules, and previewing, starting or cancelling cleanup require the corresponding permissions. Viewing or running existing rules does not by itself require rule-change permission. Confirm audit, compliance and investigation retention requirements for all affected domains with the data owners.
  2. Review the purpose of current records and any original evidence to retain, using security event collection and review; check ongoing investigations and legal preservation requirements. Cleanup and event collection scopes are separate switches: stopping collection does not ensure historical records will be exempt from cleanup.
  3. Make an approved change during a maintenance window. Confirm backup and recovery arrangements first and plan a post-run review. If the impact or evidence to retain is unclear, do not enable rules or submit a cleanup.

Set category retention rules

First check the enabled state, categories and retention days of the saved rules. If they meet the approved requirements, reuse them without changing or saving them again. Only when changes are needed should an administrator with the appropriate permission follow the steps below and confirm the impact before saving.

  1. Open Audit Event Cleanup in AD domain management. Review each event category, current count, estimated expired count, cleanup status and Retention Days. Categories include authentication, user account management, DNS audit and others displayed on the page; use the actual list.
  2. Select Enable cleanup only for approved categories and set retention days for each. The allowed range is 1 to 3650 days. Initial rules are disabled with 180 retention days; existing configurations may differ, so check the page. A disabled category is not cleaned under that rule.
  3. Review all category switches and values, then select Save rules. If another administrator's concurrent change causes saving to fail, refresh and review the latest configuration and impact before changing it again under the approval process. Do not overwrite blindly.

Preview and run manually

  1. After checking the saved rules, select Clean up now. A valid preview requires at least one enabled rule. If the page has unsaved changes, decide whether to keep them: an authorized administrator should save and recheck needed changes; otherwise discard them, reload and recheck. Opening the preview does not itself delete data.

  2. In Confirm immediate cleanup, review each category, retention days, cutoff and estimated deletion count, as well as the total estimate. The preview reflects data and rules at preview time; the submitted run determines its own execution scope, so actual counts can differ. Do not treat the estimate as a locked deletion list.

    If another administrator enables or disables a category or changes retention after the preview, the rules used at submission may differ, including categories not shown in the preview. Coordinate with other administrators before proceeding. If you cannot confirm that the rules are unchanged, cancel the preview, reload the saved rules and preview and assess the impact again. A new preview cannot prevent subsequent changes; do not submit if the scope remains uncertain.

    The preview cutoff is calculated by subtracting the retention days from the instant the preview is generated, not from midnight on a local calendar date. The page displays the cutoff in the management device’s local time zone, which may differ from the server time zone used by the automatic schedule; check both before comparing. After submission, use that task’s actual cutoff and execution results.

    Counts for GPO audit cleanup: When GPO audit cleanup is enabled, its preview and execution counts cover eligible change records, not historical comparison snapshots that may also be removed. A task can clean eligible old snapshots, so a zero estimate does not mean other GPO audit data cannot be deleted, and a zero deleted count does not mean none was deleted. Snapshots still referenced by change records and the latest successful comparison baseline for each GPO are retained. Confirm backups and the impact before cleanup when investigation evidence must be preserved.

  3. If the impact is approved and backup and recovery arrangements are confirmed, select Confirm cleanup; otherwise cancel and reassess. Successful submission means the task was submitted, not that deletion has finished.

  4. Open Cleanup runs, inspect status and details, and verify scanned and deleted counts, errors and results by category. A task may wait, run, retry, fail, partially fail, complete or be cancelled. Do not submit the same cleanup repeatedly before confirming its final state.

    A timeout, page interruption or failure message does not prove that the task was not created; it may already have started and deleted data. Do not immediately confirm another cleanup. Record the submission time and selected rules, open cleanup runs, check filters and pagination, reload, and inspect the corresponding task and its status. A missing record or a failed list load alone does not prove that no task was created. If the result cannot be confirmed, contact an administrator or support and assess the impact before deciding what to do next.

Automatic cleanup and cancellation

  1. For periodic cleanup, open Automatic cleanup settings, enable Enable daily automatic cleanup, set Daily execution time and save. Execution uses the server's local time; first check its time zone, maintenance schedule and enabled rules. Automatic cleanup is initially disabled; check the displayed settings for an existing configuration. The initially configured execution time is 02:00 server local time; this does not mean automatic cleanup is enabled.

    When automatic cleanup is enabled or its time is changed, a time already passed on the server’s current day may cause a task to be created on a later scheduler run that same day, rather than waiting until the next day. Changing the time may also create another task that day even if a cleanup task already exists. Before changing it, check the server’s current time, enabled rules and that day’s execution records and assess the impact; continue checking task status afterward. Actual creation and execution also depend on service availability and rule state.

  2. An automatic task uses the category rules enabled when that task was created. After changing or disabling rules, review both the rules and automatic cleanup settings. Do not assume that switching off a setting cancels tasks already submitted.

  3. For tasks still queued, running or waiting to retry, find the target task in Cleanup runs, select Cancel from its row action menu, then select Confirm cancellation. After submitting the request, continue checking the final state and deleted count. Cleanup runs in batches: cancellation cannot restore deleted data and may not immediately stop a batch already in progress.

Verify and troubleshoot

  • If the preview lacks expected results, check that at least one category is enabled, retention and cutoff are correct, and eligible historical records exist. Some records may not yet meet cleanup conditions; age alone does not guarantee deletion.
  • If a task fails or partially fails, inspect category results and errors in its run record and establish whether any data was already deleted before following the organization's troubleshooting process. Do not repeat the run or shorten retention to widen deletion until the actual result is understood.
  • After completion, query security events again as needed and compare them with the run record. Aggregate statistics may remain. Missing platform details do not mean the controller's original logs were cleared, nor do they prove that a recoverable backup exists.

Updated

Search documentation