1.0.3 • Published 4 years ago
@blacksquareca/pm2-cloudwatch v1.0.3
pm2-cloudwatch
Description
PM2 module to forwards pm2 logs to AWS Cloudwatch. You will need to provide a aws key and secret with write access to cloudwatch logs
Install
pm2 install @blacksquareca/pm2-cloudwatch
Configure
logGroupName: Your Log Group to write tologStreamName: The stream within the Log GroupawsRegion: Region to log (i.e. us-east-1)awsAccessKeyId: AWS access key with write cloudwatch logs permissionsawsSecretKey: AWS secret
How to set this value ?
After having installed the module you have to type :
pm2 set @blacksquareca/pm2-cloudwatch:logGroupName [logname]pm2 set @blacksquareca/pm2-cloudwatch:logStreamName [streamname]pm2 set @blacksquareca/pm2-cloudwatch:awsRegion [aws region]pm2 set @blacksquareca/pm2-cloudwatch:awsAccessKeyId [aws key]pm2 set @blacksquareca/pm2-cloudwatch:awsSecretKey [aws secret]
Uninstall
pm2 uninstall @blacksquareca/pm2-cloudwatch