Unitech / Unitech/pm2

Cluster logs should be shown on pm2 monit

Open
#5,516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

When you start a process with -i max (Cluster Mode) all the logs are not showing in pm2 monit logs page i.e. NodeJS consoles.
The logs should be merged and should be shown in pm2 monit

Also, when you are using custom log path, the cluster mode should not ignore that. Currently all the logs are stored in /root/.pm2/pm2.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pm2 monit logs page and trace how cluster mode handles NodeJS console output. Reproduce with -i max, then repeat with a custom log path; done means cluster logs are merged in pm2 monit and the configured path is respected instead of /root/.pm2/pm2.log.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.