How to remove app id and name from pm2 logs?

Viewed 2206

Using a pm2.json configuration file, how do I remove id | app.name | prefix in my logs?

My example: 5 | api.bran | part

enter image description here

I went through all pm2 --help and there's no info on how to do it. Is it even possible without editing pm2 module code?

2 Answers

I know this post is old, but i was looking for same options as i have to push the json logs to splunk and this is what i tried .

pm2 logs --raw

Related