Objective
This article provides a detailed step-by-step guide to migrate EventLog Analyzer live data or data stored in Elasticsearch (ES) to a different location or server.
Prerequisites
Access to the EventLog Analyzer console as an admin
Access to the EventLog Analyzer directory with root/sudo or high privilege access to move files and execute .sh files.
The remote folder location should be accessible from the Linux server on which EventLog Analyzer is installed.
Steps to follow
Step 1: Stop EventLog Analyzer.
If running as a service:
- Navigate to <EventLog Analyzer Home>\bin and execute the sh configureAsService.sh -t command
If running as an application:
- Navigate to the <EventLog Analyzer Home>\bin directory. Execute shutdown.sh file in the terminal.
NOTE: <EventLog Analyzer Home> refers to EventLog Analyzer installation directory. Default location: /opt/ManageEngine/EventLog
Step 2: Execute shutdown.sh, stopDB.sh, and stopSEC.sh from the <EventLog Analyzer Home>/bin directory to stop the product from the installation directory.
Step 3: Copy the ES live data, archive, and repo folders to a new location. The default locations of the ES live data, archive, and repo folders are:
- /opt/ManageEngine/EventLog Analyzer/ES/data
- /opt/ManageEngine/EventLog Analyzer/ES/repo
- /opt/ManageEngine/EventLog Analyzer/ES/archive
Note: Do not move the files directly. It is recommended to copy the files instead. Once the instance is successfully up and running, you may delete the original files if needed.
Step 4: Navigate to <EventLog Analyzer Home>/ES/config and open elasticsearch.yml in a text editor, and update the path.data and path.repo values accordingly.
Step 5: Execute initES.sh from the <EventLog Analyzer Home>\ES\bin directory.
Step 6: Navigate to <EventLog Analyzer Home>\bin and execute the below command to start the service:
sh configureAsService.sh -s
Step 7: The migration is now complete.
Tips
Do not delete any files or folders from the current EventLog Analyzer/ES folder until the migration is confirmed to be successful.
It is always recommended to set live logs in the local path or directly attached storage, as network connectivity issues in remote setups might disrupt the connection, which leads to CachedRecord creation.
Set low live log retention based on your frequently searched duration in Settings > Admin settings > Retention settings to manage the storage effectively.
Related topics and articles
- How to migrate the EventLog Analyzer Standalone edition to a different server or drive: Linux to Linux