1.14.0 • Published 5 months ago

fastify-graylog-reporter v1.14.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Fastify plugin for report request data to Graylog (GELF)

npm

NPM

Graylog Setup:

This module requires a GELF_UDP input to be configured on your graylog server.

Usage

  1. Declare the input on Graylog WEB UI (support only UDP GELF)
  2. Install plugin with npm i fastify-graylog-reporter
  3. Use.
import { fastifyGrayLogReporter } from 'fastify-graylog-reporter';
/**
 * Register plugin
 */

fastify.register(fastifyGrayLogReporter, {
  host: 'my host',
  /**
   * optional value
   */
  port: 5555,
  /**
   * stream name
   */
  facility: `API_${process.env.ENVIRONMENT}`,
  /**
   * keys for exclude report (type ExcludeKeys[])
   */
  excludeFields: [],

  /**
   * For debug
   */
  logs: true,

});

In progress

  • tcp transport
1.14.0

5 months ago

1.13.1

5 months ago

1.13.0

7 months ago

1.12.0

7 months ago

1.11.1

7 months ago

1.11.0

7 months ago

1.10.0

7 months ago

1.9.0

7 months ago

1.8.0

7 months ago

1.7.0

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.0

7 months ago

1.3.0

7 months ago

1.2.0

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago