New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

good-hapi-graylog2

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-hapi-graylog2

Graylog GELF broadcasting for Good process monitor

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-38.89%
Maintainers
1
Weekly downloads
 
Created
Source

good-hapi-graylog2

Good Reporter For Graylog2

Hapi: http://hapijs.com/

Good: https://github.com/hapijs/good

Graylog2: https://www.graylog.org/

Usage:

npm install good-hapi-graylog2

const Good = require('good');
const Hapi = require('hapi');
const pino = require('pino')();

const server = new Hapi.Server();
server.connection({ port: <your_port> });

const goodOptions = {
  includes: {
    request: ['headers'],
    response: ['payload'],
  },
  reporters: {
    logstash: [{
      module: 'good-squeeze',
      name: 'Squeeze',
      args: [{ response: '*', request: '*' }],
    }, {
      module: 'good-hapi-graylog2',
      args: [{
        host: '<graylog server ip>',
        port: '<graylog server port>',
        facility: '<your service name>',
        hostname: '<your host>',
        bufferSize: '<your buffer size>' // optional, default 1400
        adapter: '<protocol udp or tcp>' // optional, default udp
      }],
    }],
  },
};
try {
  server.register([{
      register: good,
      options: goodOptions,
    }], async () => {

    const start = await server.start();
    if (start instanceof Error) throw new Error('Ошибка запуска сервера');

    pino.info('Server running at:', server.info.uri);
  });
} catch((error) => {
  pino.error(error.message)
})

Graylog Setup:

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

FAQs

Package last updated on 06 Jun 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc