# @tele2se/log4js-logstash-tcp

> log4js logstash TCP appender.

Latest version **1.0.1** (published 2021-11-11) · 0 weekly downloads

## Install

```sh
npm install @tele2se/log4js-logstash-tcp
pnpm add @tele2se/log4js-logstash-tcp
yarn add @tele2se/log4js-logstash-tcp
bun add @tele2se/log4js-logstash-tcp
```

## 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-11-11 |
| First published | 2021-11-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 27.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tele2 Sermo |
| Maintainers | tele2stef, mrlorentz, lenkan, parste |
| Keywords | logstash, log4js, appender |

## Links

- npm: https://www.npmjs.com/package/@tele2se/log4js-logstash-tcp
- Repository: https://github.com/ComHem/log4js-logstash-tcp
- Homepage: https://github.com/ComHem/log4js-logstash-tcp#readme
- Issues: https://github.com/ComHem/log4js-logstash-tcp/issues
- npm.io page: https://npm.io/package/@tele2se/log4js-logstash-tcp

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-11
- 1.0.0 — 2021-11-01
- 0.0.3 — 2021-11-01
- 0.0.2 — 2021-11-01
- 0.0.1 — 2021-11-01

## README

# log4js-logstash-tcp

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FAigent%2Flog4js-logstash-tcp.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FAigent%2Flog4js-logstash-tcp?ref=badge_shield)

Based on the works of https://github.com/Aigent/log4js-logstash-tcp. Initially, a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender.

This fork was created to change the serialization of message to include stack traces. This changes the behaviour significantly from the original version.

## Usage: log4js configuration

Plain javascript

```javascript
const log4js = require("log4js");

log4js.configure({
  appenders: {
    console: {
      type: "console",
    },
    logstash: {
      type: "@tele2se/log4js-logstash-tcp",
      host: "<LOGSTASH_HOST>",
      port: "<PORT>",
      fields: {
        app_name: "application-name",
        index: "es-index",
      },
    },
  },
  categories: {
    default: {
      appenders: ["console", "logstash"],
      level: "debug",
    },
  },
});

const logger = log4js.getLogger();

module.exports = logger;
```

## License

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FAigent%2Flog4js-logstash-tcp.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FAigent%2Flog4js-logstash-tcp?ref=badge_large)

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