pm2-hive / pm2-syslog

PM2 module to redirect application logs to syslog
41 stars 28 forks source link

Not working? #10

Open nodesocket opened 6 years ago

nodesocket commented 6 years ago

I have this module installed and enabled:

 Module activated
┌────────────┬─────────┬────────────┬────────┬─────────┬─────┬─────────────┐
│ Module     │ version │ target PID │ status │ restart │ cpu │ memory      │
├────────────┼─────────┼────────────┼────────┼─────────┼─────┼─────────────┤
│ pm2-syslog │ 2.2.3   │ N/A        │ online │ 0       │ 0%  │ 29.656 MB   │
└────────────┴─────────┴────────────┴────────┴─────────┴─────┴─────────────┘

Yet my application is still logging to blog-error-0.log and blog-out-0.log? What am I missing?

brecke commented 6 years ago

Same here only with 2.10.3

DiscoStarslayer commented 3 years ago

The readme specifies to "uncomment". I ignored that and added the following lines to the bottom of the rsyslog config: image

Turns out the "uncomment" is important as these lines need to be at the beginning of the file to be effective. After moving the declaration the logging worked as expected.

udhayakumarcp commented 3 months ago

Not working for me too. pm2-syslog