📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

pm2-graylog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-graylog

pm2's log sending to graylog

1.0.6
latest
Source
npm
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

pm2-graylog

pm2 module for logging to Graylog.

Inspired by pm2-gelf-json and pm2-gelf-pro

Features

  • Support JSON format
  • Support pino.js logs
  • Log levels mapping

Installation

pm2 install pm2-graylog

Needs

When set pm2 set pm2-graylog:pm2LogType 'json', needs:

ecosystem.config.js of PM2: log_type: 'json'

Configuration

$> pm2 set pm2-graylog:graylogHost graylog.myserver.org
$> pm2 set pm2-graylog:graylogPort 12201
$> pm2 set pm2-graylog:graylogLogParseErrors true
$> pm2 set pm2-graylog:graylogSplitLines true
$> pm2 set pm2-graylog:gelfCustomConfigs '{"optionKey": "optionValue"}'
$> pm2 set pm2-graylog:gelfAdapterName 'udp'
$> pm2 set pm2-graylog:gelfLogLevelsMapping '0:7,10:7,20:7,30:6,40:4,50:3,60:0'
# default normal string
# pm2 set pm2-graylog:pm2LogType 'json'
# pm2 set pm2-graylog:graylogType 'json'

Keywords

pm2

FAQs

Package last updated on 30 Aug 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