In this article:
Objective
Prerequisites
Steps to follow
Validation and confirmation
Tips
Related topics and articles
Objective
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.
Prerequisites
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.
Steps to follow
Step 1: Move database archive files to a new location
Log in to the ADAudit Plus web console using the default admin account.
Navigate to Admin, and under Configuration, choose Archive Events.
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.
Step 2: Migrate existing archives to the new location
Connect to the server where ManageEngine ADAudit Plus is installed using Remote Desktop Protocol. To do this, open the Remote Desktop Connection application on your system, enter the hostname or IP address of the ADAudit Plus server, and log in with valid administrator credentials.
Open Services.msc.
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.
Step 3: Update the database with a new archive path
Log in to the ADAudit Plus web console as the default admin.
Navigate to Support > Support Info > More.
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.
Step 4: Move DataEngine archive files to a new location
When moving all DataEngine archive files from {archive_location_1} to {archive_location_2}:
Add an entry for {archive_location_2} in the following configuration file:
{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
Validation and confirmation
Check if new archived logs are being saved in the updated path.
If you've moved existing archives manually, confirm those files are accessible via the UI or back end and aren't flagged as missing or corrupted.
Tips
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.
Related topics and articles
How to configure the archive retention period in ADAudit Plus
How to manage archive files in ADAudit Plus