This topic describes how to connect Message Queue for Apache Kafka to 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:
- 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.
- 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.
- Output: exports data. Logstash provides multiple outputs to flexibly adapt to various downstream use cases.
For more information about Logstash, see Logstash Introduction.
The operation to connect Message Queue for Apache 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.