pm2-hive / pm2-syslog

PM2 module to redirect application logs to syslog
41 stars 28 forks source link
keymetrics module monitor pm2 pm2-syslog syslog

pm2-syslog

Redirect all logs of PM2 + Apps managed into /var/log/syslog

Configure OS

Edit /etc/rsyslog.conf and uncomment:

# provides UDP syslog reception
module(load="imudp")
input(type="imudp" port="514")

Restart rsyslog:

$ sudo service rsyslog restart

Install module

# Install
$ pm2 install pm2-syslog

# Uninstall
$ pm2 uninstall pm2-syslog

License

MIT