How Logstash is different than Kafka

Chandan Gupta picture Chandan Gupta · Nov 29, 2016 · Viewed 11.1k times · Source

How Log stash is different than Kafka? and if both are same which is better? and How?

I found both are the pipelines where one can push the data for further processing.

Answer

Kulasangar picture Kulasangar · Nov 29, 2016

Logstash is a tool that can be used to collect, process and forward events and log messages. Collection is accomplished through a number of input plugins. You can use Kafka as an input plugin, where it will read events from a Kafka topic. Once an input plugin has collected data it can be processed by any number of filters which modify and annotate the event data. Finally events are routed to output plugins which can forward the events to a variety of external programs including Elasticsearch.

Where as Kafka is a messaging software that persists messages, has TTL, and the notion of consumers that pull data out of Kafka. Some of it's usages could be:

  • Stream Processing
  • Website Activity Tracking
  • Metrics Collection and Monitoring
  • Log Aggregation

So simply both of them have their own advantages and disadvantages. But then it depends on your requirements solely.