Migrating from Swift to Elasticsearch

  • Last update: 2026-09-15
  • Overview

    Version

    FineOps Version
    Functional Change
    V2.37.0/

    Function Introduction

    With the Swift Log Migration function, you can migrate the logdb log data of a project from Swift storage to Elasticsearch storage.

    After the migration is complete, you can switch the data connection of the original analysis tables based on logdb to continue viewing and using them.

    You can use this function in the following two scenarios:

    1. Log migration within the same project: A project is switched from Swift storage to Elasticsearch storage. This scenario is common when Elasticsearch is used as the log storage component after a project crash.

    2. Log migration across projects: Operation logs in Swift of one project are migrated to Elasticsearch of another project. This scenario is common when a Non-FineOps-deployed project is migrated to a FineOps-deployed project.

    Log Migration Within the Same Project

    Applicable scenario: A project is switched from Swift storage to Elasticsearch storage. This scenario is common when Elasticsearch is used after a project crash. In this case, select the same project from the Swift Storage Project and Elasticsearch Log Project drop-down lists.

    Prerequisites

    Before starting the migration, complete the following preparations. After you select a project, FineOps automatically performs an environment check.

    1. The FineOps version must be V2.37.0 or later.

    2. FineOps must have been connected to the project.

    3. Operation logs stored in Swift must exist in the project. If Swift operation logs have never been enabled, you do not need to use the Swift Log Migration function.

    4. Elasticsearch for operation log storage must have been enabled for the project. For details, see Connecting Elasticsearch to Projects for Log Service.

    5. The remaining available disk capacity of Elasticsearch must be greater than the disk capacity occupied by current Swift logs.

    6. No other Swift Log Migration task can be running in FineOps. Only one migration task can run at a time.

    7. You are advised to perform the migration during non-production hours because the migration process occupies high server disk I/O and network I/O.

    8. After all operation logs stored in Swift in the project have been migrated to Elasticsearch, reverting to Swift storage is not supported.

    Procedure

    1. Log in to FineOps as the admin, and choose Maintenance Center > Project Migration > Swift Log Migration to go to the migration configuration page.

    2. Select the same project from the Swift Storage Project and Elasticsearch Log Project drop-down lists.

    3. FineOps automatically performs an environment check on the current project. Continue after all check items pass.

    The pass criteria and solutions for the related check items are shown in the following table.

    Check Item
    Description
    Task idle status

    Error: The task status check failed. Try again or check the logs.

    Pass Criteria: No other Swift Log Migration task is running in FineOps or the selected project.

    Solution: Wait until the existing Swift Log Migration task is complete, and then perform this migration task.
    Elasticsearch configuration

    Error: The target project [xxx] does not have an Elasticsearch log store configured. Configure it in the project before migration.

    Pass Criteria: The target project has been configured with the Elasticsearch storage component, and the Elasticsearch Implementation of LogDB plugin has been installed and enabled in the project.

    Solution: For details, see Connecting Elasticsearch to Projects for Log Service.
    Migration pluginPass Criteria: The Platform Log Data Migration plugin has been installed and enabled in the target project.
    Solution: If FineOps detects that the plugin has not been installed or enabled in the project, it attempts to install the plugin automatically and then performs the check again. If automatic installation fails, contact FanRuan technical support to obtain the plugin, and install the plugin in the corresponding project. For details, see Server Plugin Management.
    Elasticsearch connectivityPass Criteria: The node where Swift storage resides can connect to the node where Elasticsearch storage resides.
    Solution: Contact server O&M personnel to enable the network connection.
    Swift data

    Error: The source project [xxx] has the Elasticsearch log plugin enabled, which conflicts with Swift logs. Disable the Elasticsearch plugin and restart the project to read Swift log data.

    Pass Criteria: FineOps can read the tables to be migrated from Swift.

    Solution: Because the current project has the Elasticsearch log plugin enabled, which conflicts with Swift logs, this check item generally cannot pass. Disable the Elasticsearch Implementation of LogDB plugin and restart the project before reading Swift log data. 

    Click Auto Switchover (Disable Elasticsearch and Restart) in the pop-up message. 

    Wait until FineOps automatically disables the plugin in the project and restarts the project. 

    After the log mode is switched successfully, perform the migration.

    4. Select the start date and end date in Time Range. The default value is from the start time to the end time of the current project Swift logs.

    5. Select log tables from the Logs to Migrate drop-down list. Multiple selection and full selection are supported.

    • You are advised to select only the log tables that require analysis, and prioritize the migration of execution record logs (fine_record_execute).

    • Performance event tracking log tables contain a large data volume and account for approximately 60% of the total log volume. If you do not need to analyze these log tables, you can skip migrating them to shorten the migration time.

    6. Click Start Migration.

    7. After the migration starts, the page displays migration progress information.

    • Disk Check: If disk space is insufficient, the migration cannot start.

    • Estimated Time Remaining: It displays the estimated time remaining based on the current migration progress.

    • Migration details: The log table name, corresponding log table, and migration progress are displayed. The migration progress is represented by Number of migrated rows/Total number of rows to migrate.

    Task pausing is not supported. If a task fails midway, the system automatically reverts all changes made during the current migration.

    8. After the migration succeeds, FineOps automatically starts the Elasticsearch plugin of the target project. The pop-up message is displayed: "Elasticsearch Log Plugin Enabled Automatically: Migration completed. The Elasticsearch log plugin (that was temporarily disabled to resolve a Swift/Elasticsearch data conflict) in the project [xxx] has been re-enabled."

    Log Migration Across Projects

    Applicable scenario: Operation logs in the Swift storage of one project are migrated to the Elasticsearch storage of another project. This scenario is common when a Non-FineOps-deployed project is migrated to a FineOps-deployed project.

    Prerequisites

    Before starting the migration, complete the following preparations. After you select projects, FineOps automatically performs an environment check.

    1. The FineOps version must be V2.37.0 or later.

    2. The same FineOps must have been connected to both projects.

    3. Elasticsearch storage must not have been enabled for the source project.

    4. Operation logs stored in Swift must exist in the source project. If Swift has not stored any operation logs, you do not need to use the Swift Log Migration function.

    5. Elasticsearch for operation log storage must have been enabled for the target project. For details, see Connecting Elasticsearch to Projects for Log Service.

    6. The remaining available disk capacity of Elasticsearch in the target project must be greater than the disk capacity occupied by current Swift logs in the source project.

    7. No other Swift Log Migration task can be running in FineOps. Only one migration task can run at a time.

    8. You are advised to perform the migration during non-production hours because the migration process occupies high server disk I/O and network I/O.

    Procedure

    1. Log in to FineOps as the admin, and choose Maintenance Center > Project Migration > Swift Log Migration to go to the migration configuration page.

    2. Select the corresponding projects from the Swift Storage Project and Elasticsearch Log Project drop-down lists.

    • Swift Storage Project: the source project that uses Swift for operation log storage

    • Elasticsearch Log Project: the target project that uses Elasticsearch for operation log storage

    3. FineOps automatically performs an environment check on the current project. Continue after all check items pass.

    The pass criteria and solutions for the related check items are shown in the following table.

    Check Item
    Description
    Task idle status

    Error: The task status check failed. Try again or check the logs.

    Pass Criteria: No other Swift Log Migration task is running in FineOps or the selected project.

    Solution: Wait until the existing Swift Log Migration task is complete, and then perform this migration task.
    Elasticsearch configuration

    Error: The target project [xxx] does not have an Elasticsearch log store configured. Configure it in the project before migration.

    Pass Criteria: The target project has been configured with the Elasticsearch storage component, and the Elasticsearch Implementation of LogDB plugin has been installed and enabled in the project.

    Solution: For details, see Connecting Elasticsearch to Projects for Log Service.
    Migration pluginPass Criteria: The Platform Log Data Migration plugin has been installed and enabled in the target project.
    Solution: If FineOps detects that the plugin has not been installed or enabled in the project, it attempts to install the plugin automatically and then performs the check again. If automatic installation fails, contact FanRuan technical support to obtain the plugin, and install the plugin in the corresponding project. For details, see Server Plugin Management.
    Elasticsearch connectivityPass Criteria: The node where Swift storage resides can connect to the node where Elasticsearch storage resides.
    Solution: Contact server O&M personnel to enable the network connection.
    Swift data

    Error: The source project [xxx] has the Elasticsearch log plugin enabled, which conflicts with Swift logs. Disable the Elasticsearch plugin and restart the project to read Swift log data.

    Pass Criteria: FineOps can read the tables to be migrated from Swift.

    Solution: Because the current project has the Elasticsearch log plugin enabled, which conflicts with Swift logs, this check item generally cannot pass. Disable the Elasticsearch Implementation of LogDB plugin and restart the project before reading Swift log data. 

    Click Auto Switchover (Disable Elasticsearch and Restart) in the pop-up message. 

    Wait until FineOps automatically disables the plugin in the project and restarts the project. 

    After the log mode is switched successfully, perform the migration.

    4. Select the start date and end date in Time Range. The default value is from the start time to the end time of the current project Swift logs.

    5. Select log tables from the Logs to Migrate drop-down list. Multiple selection and full selection are supported.

    • You are advised to select only the log tables that require analysis, and prioritize the migration of execution record logs (fine_record_execute).

    • Performance event tracking log tables contain a large data volume and account for approximately 60% of the total log volume. If you do not need to analyze these log tables, you can skip migrating them to shorten the migration time.

    6. Click Start Migration.

    7. After the migration starts, the page displays migration progress information.

    • Disk Check: If disk space is insufficient, the migration cannot start.

    • Estimated Time Remaining: It displays the estimated time remaining based on the current migration progress.

    • Migration details: The log table name, corresponding log table, and migration progress are displayed. The migration progress is represented by Number of migrated rows/Total number of rows to migrate.

    Task pausing is not supported. If a task fails midway, the system automatically reverts all changes made during the current migration.


    Attachment List


    Theme: Project Management
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy