Updated on 2026-04-30 GMT+08:00

Starting Migration Tasks

In large-scale data processing and real-time log ingestion scenarios, developers often need to pull data from various data sources, such as Kafka and MySQL, to Elasticsearch or OpenSearch. Key challenges in such efforts include network connectivity, task interruptions, and the complexity of multi-pipeline management. CSS provides a web-based configuration center for Logstash clusters, where you can test network connectivity between Logstash and both the data source and destination in one click, as well as start or hot-start pipelines. To ensure high availability and stability in complex scenarios, CSS also deploys a Keepalive mechanism supported by a daemon process.

  • Pipeline: A core Logstash component for data processing, comprising three stages: input, filter, and output.
  • Keepalive: A high availability mechanism. When enabled, a daemon process monitors Logstash; and if Logstash fails, the daemon process automatically attempts to restore it.

Comparing Pipeline Start Options

Table 1 Start vs. Hot Start

Option

Start

Hot Start

How It Works

When the cluster has no running pipelines, the system initializes the runtime environment and loads the configuration.

When the cluster already has running pipelines, a new pipeline is dynamically loaded without restarting the entire Logstash process, ensuring zero service interruptions.

Batch Processing

Up to 50 configuration files can be started at once.

Only one configuration file can be started at a time.

Keepalive

You can choose to enable or disable Keepalive.

The Keepalive setting is inherited from existing pipelines in the cluster. It cannot be modified.

When to Use

The cluster has no Running pipelines.

The cluster already has Running pipelines. You use this option to add new pipelines without interrupting existing pipelines.

Constraint

N/A

  • Configuration files that use the stdin plugin cannot use the Hot Start option.
  • If a hot start fails and the Logstash process becomes abnormal, the system will automatically try to restore it through a restart. Use it with caution.

Constraints

There can be up to 50 Running configuration files in the pipeline list of a Logstash cluster.

Preparations: Testing Connectivity

Before starting a migration task, test the connectivity between Logstash and both the data source and destination. This helps prevent task failures caused by connectivity issues.

  1. Go to the Configuration Center page.
    1. Log in to the CSS management console.
    2. In the navigation pane on the left, choose Clusters > Logstash.
    3. In the cluster list, click the name of the target cluster. The cluster information page is displayed.
    4. Click the Configuration Center tab.
  2. On the Configuration Center page, click Test Connectivity.
  3. In the Test Connectivity dialog box, enter the IP addresses and port numbers of the data source and destination, and click Test.

    You can test a maximum of 10 IP addresses at a time. You can click Add to add more IP addresses and click Test at the bottom to test connectivity to multiple IP addresses at a time.

    Figure 1 Test Connectivity

    If Available is displayed, the network is connected. If the network is disconnected, configure routes for the Logstash cluster to connect the network. For details, see Configuring Routes for a Logstash Cluster.

Starting a Migration Task

Start a Logstash pipeline to migrate data from the source to the destination.

  1. Check whether there are pipelines whose status is Running in the pipeline list.
    • Yes: Perform 3 to hot-start a configuration file.
    • No: Perform 2 to start a configuration file.
  2. Start a configuration file.
    1. In the configuration file list, select 1 to 50 configuration files and click Start Logstash above.
    2. In the displayed dialog box, choose whether to select Keepalive.

      Select Keepalive for long-term data streams in production environments. If the Logstash service stops due to an unexpected error, the system will automatically try to restart it.

      Deselect Keepalive for one-time offline data migration tasks. Note that if the source has no data, enabling Keepalive may cause the pipeline to restart repeatedly, which may lead to errors.

    3. Click OK to activate Logstash pipelines.
  3. Hot-start a configuration file.
    1. In the configuration file list, select one configuration file, and click Hot Start above.
    2. In the displayed dialog box, confirm the Keepalive setting. The Keepalive setting is inherited from existing pipelines in the cluster. It cannot be modified.
    3. Click OK to activate the Logstash pipeline.
  4. Verify the result. Check that the new pipeline is displayed in the pipeline list and that its status is Running, indicating data migration is in progress.

Monitoring Pipelines

After starting data migration pipelines, you can monitor them in the following ways:

  • Check their metrics.

    In the pipeline list, locate the target pipeline, and click Metric Monitoring in the Operation column to go to the Cloud Eye console, where you can check the metrics to evaluate its status and performance.

    When the Events data of a pipeline changes dynamically, the monitoring data changes accordingly. When a pipeline is being started or stopped, or the Events data is stable, the monitoring data remains unchanged.

    For details about the metrics supported, see Logstash Pipeline Monitoring Metrics. For how to configure alarms, see Using Cloud Eye to Monitor Clusters.

  • Check run logs.

    Above the pipeline list, click Run Logs to check the logs of the Logstash process, which you can use to troubleshoot data parsing errors.

  • Check operation records.

    Above the pipeline list, click View to check the start and stop records of the pipelines. This helps track historical operations and facilitate troubleshooting.