# @pastash/input_kafkajs

> kafkajs Input Plugin for @pastash/pastash

Latest version **1.0.1** (published 2021-08-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @pastash/input_kafkajs
pnpm add @pastash/input_kafkajs
yarn add @pastash/input_kafkajs
bun add @pastash/input_kafkajs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-08-22 |
| First published | 2021-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lorenzo Mangani |
| Maintainers | lmangani |

## Links

- npm: https://www.npmjs.com/package/@pastash/input_kafkajs
- npm.io page: https://npm.io/package/@pastash/input_kafkajs

## Dependencies (1)

- [kafkajs](https://npm.io/package/kafkajs.md) ^1.15.0

## Recent versions

- 1.0.1 (latest) — 2021-08-22

## README

KafkaJS output plugin
---

Status : experimental plugin, unit tested and maintained.

This plugin is used to send logs to Kafka.


Config using logstash format:
````
output {
  kafkajs {
    topic => "your-topic-here"
    kafkaHost => "receiver:9092"
    debug => false
  }
}
````

Parameters :
* ``kafkaHost``: Kafka host:port sets delimited by comma, _Example: 10.0.0.1:9092,10.0.0.2:9092_. Required. 
* ``topic``: Kafka topic. Required.
* ``partition``: Field to extract and use as Partition value for indexing. Optional.
* ``sasl_user``: SASL Username. Optional.
* ``sasl_pass``: SASL Password. Optional.
* ``debug``: Debug option. Optional.

---
_Source: https://npm.io/package/@pastash/input_kafkajs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
