Pm2 Logs to gralog

(ketan) #1

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

(Jochen) #2

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?

(ketan) #3

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

(ketan) #4

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

(Jochen) #5

(ketan) #6

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

(Jochen) #7

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.

(ketan) #8

can u help with the procedure to use Filebeat or NXLOG

(Jochen) #9

You can use the Graylog Collector Sidecar:

(system) closed #11

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