Socket
Book a DemoInstallSign in
Socket

fastify-graylog-reporter

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-graylog-reporter

Fastify plugin for report request data to Graylog

latest
Source
npmnpm
Version
1.14.0
Version published
Maintainers
2
Created
Source

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

  • 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

Keywords

fastify

FAQs

Package last updated on 22 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts