fastify-graylog-reporter
v1.14.0
Published
Fastify plugin for report request data to Graylog
Downloads
64
Readme
Fastify plugin for report request data to Graylog (GELF)
Graylog Setup:
This module requires a GELF_UDP input to be configured on your graylog server.
Usage
- Declare the input on Graylog WEB UI (support only UDP GELF)
- Install plugin with
npm i fastify-graylog-reporter
- 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