JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q34043F
  • License MIT

Fastify plugin for report request data to Graylog

Package Exports

  • fastify-graylog-reporter
  • fastify-graylog-reporter/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fastify-graylog-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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