Pm2 Logs to gralog

i have a Question . how should i send pm2 logs to graylogs

What’s “pm2”?
Can the logging subsystem of “pm2” be configured externally?
What type of logging appenders (or sinks) does the logging subsystem of “pm2” support?

pm2 is Advanced, production process manager for Node.js
“pm2” be configured externally – yes
i am using syslog

its logging path is home/user/.pm2/logs

i have used the same method for system logs but pm2 logs is not working
its logging path is home/user/.pm2/logs

That’s not syslog then. You could use Filebeat or NXLOG to read the log files and send the messages to Graylog.

Alternatively, there seems to be a 3rd party extension for supporting GELF.

can u help with the procedure to use Filebeat or NXLOG

You can use the Graylog Collector Sidecar: http://docs.graylog.org/en/2.4/pages/collector_sidecar.html

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.