This article offers a comprehensive, step-by-step guide on modifying the custom path for archived log storage and migrating existing archives to the newly designated location.
Have access to the ADAudit Plus web console.
Have access to the built-in admin account for ADAudit Plus.
Have access to the target archive path.
The service account configured in ADAudit Plus must have read, write, and modify permissions on the new archive storage location.
Click the Archive Folder option located in the top-right corner.
Enter the new archive folder path. Ensure the path is valid and accessible by the ADAudit Plus service account.
Click Save.
Click Run Now to immediately sync any existing archive files, or wait for the scheduled archive sync at 2am daily.
Locate and Stop both ADAudit Plus services.
ManageEngine ADAudit Plus
ManageEngine ADAudit Plus - Data Engine XNode
Copy all archive files and folders from the current archive directory to the new archive path specified earlier.
Ensure that the folder structure (e.g., backup, DataEngine) is preserved during the transfer.
Once the files are copied, go back to Services.msc and Start both ADAudit Plus services.
Identify the database type (PostgreSQL or Microsoft SQL) in the Machine Details section.
If using a PostgreSQL database, execute the query in the Query Window.
Expand the section Enable/Disable Configuration Settings.
Enable the option Run DML Queries.
In the Query 1 Box, execute the following query:
update audbackupmetatable set base_DB_backup_directory='<new path>'
Replace <new path> with the full, correctly formatted path.
Use UNC format for network shares (e.g., \\Server\Share).
Use the absolute local path (e.g., D:\ADAP_Archives) for local drives.
If using a Microsoft SQL database, execute the query in a database management tool connected to the ADAudit Plus database.
Go back to Services.msc and Restart both ADAudit Plus services.
{product_home}\apps\dataengine-xnode\conf\datarepository\archive-locations.conf
Example directory structure for DataEngine archives:
C:\ADAuditPlus\archive\dataengine\audit-log\AdapDNSAuditLog\frozen\AdapDNSAuditLog_1652862766154.gz
{archive_location} is C:\ADAuditPlus\archive\dataengine
{container_name} is audit-log
{repository_name} is AdapDNSAuditLog
When using a shared network location, use the full UNC path (e.g., \\ServerName\ShareName) instead of mapped drive letters.
Avoid configuring paths on removable drives or temporary network shares that may become unavailable.
Ensure the new path has sufficient free space for future archives. Configure disk space alerts if needed.
Before transferring archived logs, retain a secure backup copy to prevent accidental data loss.