Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Logstash Configuration File

Updated on 2024-10-12 GMT+08:00

Logstash clusters use configuration files to define plans to migrate data from different data sources (input) to different destinations (output).

Constraints

  • The size of each configuration file cannot exceed 100 KB.
  • A Logstash cluster can have a maximum of 50 configuration files. There can be a maximum of five configuration files that are in the Verifying state at the same time.

Prerequisites

You have obtained information about servers or clusters at the data source and destination, including IP addresses, usernames, and passwords.

Creating a Configuration File

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters > Logstash.
  3. In the displayed cluster list, locate the row that contains the target cluster, and click Configuration Center in the Operation column. The Configuration Center page is displayed.

    Alternatively, in the cluster list, click the cluster name to go to the cluster information page. In the navigation pane on the left, choose Configuration Center.

  4. Click Create in the upper right corner. On the Create Configuration File page that is displayed, edit the configuration file.
    Table 1 Creating a configuration file

    Parameter

    Description

    Name

    User-defined configuration file name.

    It can contain only letters, digits, hyphens (-), and underscores (_), and must start with a letter. The minimum length is 4 characters.

    Configuration File Content

    You can configure the configuration file content by modifying a template, and develop it from scratch.

    To use a configuration file template, expand System Templates or Custom Templates, select a template based on its description, and click Apply in the Operation column to copy the content of the template to the Configuration File Content area, where you can further modify relevant items.

    NOTE:

    The size of each configuration file cannot exceed 100 KB.

    Hidden Content

    For items that you enter in this box, the corresponding strings will be replaced with *** in the configurations.

    Enter sensitive strings that you want to hide, and press Enter.

    You can enter a maximum of 20 strings, each with a maximum length of 512 bytes.

  5. Click Next to configure Logstash pipeline parameters.
    Table 2 Pipeline parameters

    Parameter

    Description

    pipeline.workers

    Number of worker threads that will execute the Filters and Outputs stages of the pipeline in parallel.

    Value range: 1–20

    Default value: Number of CPU cores

    pipeline.batch.size

    Maximum number of events that a worker thread collects from inputs before attempting to execute its filters and outputs. A larger value is more effective but increases memory overhead.

    Default value: 125

    pipeline.batch.delay

    Maximum wait time for each new event before scheduling small batches to the pipeline worker thread and creating a pipeline event batch.

    Default value: 50

    Unit: milliseconds.

    queue.type

    An internal queue for event buffering.

    • memory indicates a traditional memory-based queue.
    • persisted indicates a disk-based ACKed persistent queue.

    Default value: memory

    queue.checkpoint.writes

    Maximum number of written events before a forced checkpoint. This parameter needs to be set only when queue.type is set to persisted.

    Default value: 1024

    queue.max_bytes

    Total capacity of each persistent queue in MB. Ensure that the disk capacity is greater than this value. This parameter needs to be set only when queue.type is set to persisted.

    Default value: 1024

    Unit: MB

  6. After the configuration is complete, click Create.

    On the Configuration Center page, you can check the created configuration file. If its status changes to Available, it has been successfully created.

Managing Configuration Files

You can edit existing configuration files, set a configuration file as a custom template, and delete configuration files.

Table 3 Managing configuration files

Function

Constraints

Operation Guide

Modifying a configuration file

A configuration file that has an ongoing pipeline task cannot be modified.

In the configuration file list, find the row that contains the configuration file you want to edit, and click Edit in the Operation column. On the displayed page, you can modify Configuration File Content, Hidden Content, and pipeline parameters.

Setting a configuration file as a template

N/A

In the configuration file list, click Add to Custom Template in the Operation column. In the displayed Add to Custom Template dialog box, set the template name, description, and configuration file content, and click OK. It can then be used as a template for configuring configuration files subsequently.

Exporting configuration files

N/A

Click in the upper right corner above the configuration file list to export all configuration files for local backup.

Deleting a configuration file

A configuration file that has an ongoing pipeline task cannot be deleted.

In the configuration list, find the row that contains the configuration file you want to delete, and click Delete in the Operation column. In the displayed dialog box, click OK.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback