Using a pm2.json
configuration file, how do I remove id | app.name | prefix in my logs?
My example: 5 | api.bran | part
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?
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
In short, NO
If you really need this, you can edit their source according to your need, should be simple enough.
Update: Seems like pm2 now offers --raw flag for this purpose that for versions >= 2.5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With