All Products
Search
Document Center

ApsaraMQ for Kafka:Connect ApsaraMQ for Kafka to Logstash

Last Updated:Sep 14, 2023

This topic describes how to connect ApsaraMQ for Kafka to Logstash.

Logstash

Logstash is an open source server-side data processing pipeline that can collect data from multiple sources at the same time, transform the data, and store it to the specified location. Logstash processes data in the following way:

  1. Input: collects data of various formats, sizes, and sources. In actual business, data is scattered or siloed across multiple systems in various formats. Logstash supports multiple data inputs and collects data from multiple data sources at the same time. Logstash can collect data from logs, web applications, and data storage in a continuous streaming manner.

  2. Filter: parses and transforms data in real time. During data transmission from the source to the destination storage, Logstash filters parse each event, identify named fields to build a structure, and transform them to converge on a common format for more powerful analysis and business value.

  3. Output: exports data. Logstash provides multiple outputs to flexibly adapt to various downstream use cases.

For more information about Logstash, see Logstash Introduction.

Benefits

The operation to connect ApsaraMQ for Kafka to Logstash brings the following benefits:

  • Asynchronous processing: improves the operation efficiency and prevents burst traffic from affecting user experience.

  • Application decoupling: ensures that when the upstream application or downstream application has an exception, the other still runs normally.

  • Overhead reduction: reduces the resource overhead of Logstash.

Connection methods

You can connect ApsaraMQ for Kafka to Logstash by using the following methods: