Socket
Socket
Sign inDemoInstall

fastify-graylog-reporter

Package Overview
Dependencies
68
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fastify-graylog-reporter

Fastify plugin for report request data to Graylog


Version published
Weekly downloads
33
decreased by-61.63%
Maintainers
2
Install size
7.66 MB
Created
Weekly downloads
 

Readme

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

  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

Keywords

FAQs

Last updated on 22 Nov 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc