Docs
ues
Logstash
Pipeline Management

Pipeline Management

Logstash implements data collection processing through pipelines. It includes mandatory input and output plugins, optional filter plugins, and supports parallel running of multiple pipelines. This article discusses how to manage pipelines via configuration files, including creating, modifying, and deleting pipelines.

Creating Pipelines

  1. Log in to the ULogstash console and enter the Logstash instance list page.

  2. On the instance list page, click on the instance name to enter the instance details page, then go to the pipeline management tab and click create pipeline.

  1. Fill in the pipeline name (support for letters, numbers, _)
  1. Config configuration

    Users modify according to the task content.

    Parameter Description

    ParameterDescription
    inputConfiguration of the input data source. For types of input data sources supported by Logstash, refer to Input plugins
    filterConfiguration for data filtering or preprocessing. For types of filter plugins supported by Logstash, refer to Filter plugins
    outputConfiguration of the output data source. For types of output data sources supported by Logstash, refer to Output plugins

    For detailed pipeline task configuration, refer to Configuration file structure.

  2. Pipeline parameter configuration

    ParameterDescriptionDefault Value
    Pipeline namepipeline.id, the unique identifier of the pipeline-
    Pipeline worker threadspipeline.workers, the number of worker threads in the pipeline, which are also the worker threads running the filter and output of the pipeline in parallelSingle-node CPU core count of the instance
    Pipeline batch sizepipeline.batch.size, the maximum number of events processed in each batch125
    Pipeline batch delaypipeline.batch.delay, the maximum waiting time for each batch when the pipeline batch size is not met, in milliseconds50ms
    Queue typequeue.type, the queue model used for event buffering, the optional value is memory (in-memory queue). Changes are not currently supportedmemory
    Maximum byte of queuequeue.max_bytes, when choosing the persisted queue type, the maximum byte count that can be stored in the queue. Make sure this value is less than the disk capacity of the single-node instance. Changes are not currently supported1024MB
    Number of queue checkpoint writesqueue.checkpoint.acks, when choosing the persisted queue type, the maximum number of written events in forceful checkpoint execution. If set to 0, means unlimited. Changes are not currently supported1024

Modifying Pipelines

Changes to pipelines need to be restarted to take effect

  1. In the pipeline list, click the modification button on the right side of the pipeline you want to modify to enter the pipeline modification page.
  2. Modify the task configuration and parameter configuration of the pipeline on the pipeline modification page.
  3. Click save to complete pipeline modification, the modified content will take effect when the pipeline is restarted next time.

Deleting Pipelines

Note:

  • Pipelines cannot be recovered after deletion
  • Running pipelines need to be stopped first before deletion can be carried out
  1. In the pipeline list, find the pipeline to be deleted, and click delete in the operation list on the right.