Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 405 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 405 Bytes

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