pm2-gelf-json
v1.0.3
Published
PM2 logging to Graylog using gelf-pro with JSON support
Downloads
10
Readme
pm2-gelf-json
pm2 module for logging to Graylog with JSON support.
Inspired by pm2-gelf-pro
Features
- Support JSON format
- Support pino.js logs
- Log levels mapping
Installation
pm2 install pm2-gelf-json
Configuration
$> pm2 set pm2-gelf-json:graylogHost graylog.myserver.org
$> pm2 set pm2-gelf-json:graylogPort 12201
$> pm2 set pm2-gelf-json:graylogLogParseErrors true
$> pm2 set pm2-gelf-json:graylogSplitLines true
$> pm2 set pm2-gelf-json:graylogFields '{"tag": "pm2"}'
$> pm2 set pm2-gelf-json:gelfAdapterName 'udp'
$> pm2 set pm2-gelf-json:gelfLogLevelsMapping '0:7,10:7,20:7,30:6,40:4,50:3,60:0'