1.0.2 • Published 7 years ago

logagent-output-kafka v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Logagent Plugin: Apache Kafka

Output plugin for @sematext/logagent. The plugin acts as message producer for Apache Kafka. This project is specular project of @sematext/logagent-input-kafka

Installation

Install @sematext/logagent and logagent-output-kafka npm package:

npm i -g @sematext/logagent 
npm i -g logagent-output-kafka

Configuration

# Global options
options:
  includeOriginalLine: false

input:
  stdin: true

output:
  kafka: 
   module: logagent-output-kafka
   host: localhost //by default use 9092 and 9093 for ssl
   topic: test
   requireAcks: 1
   sslEnable: false
   sslOptions: 
      - rejectUnauthorized: false

Start logagent

logagent --config logagent-kafka-output.yaml