Skip to content

CodeRecipe-dev/Heroku-log-AWS-cloudwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Logs on AWS CloudWatch using AWS Lambda

python serverless

Stream and store heroku logs in AWS Cloudwatch using AWS Lambda and Heroku Log Drains.

More info: https://coderecipe.ai/architectures/59609314

Download the code locally

git clone git@github.com:CodeRecipe-dev/Heroku-log-AWS-cloudwatch.git

Deploy to the cloud

cd Heroku-log-AWS-cloudwatch

npm install

serverless deploy --stage <your-stage-name>

Add endpoint as Log Drain on heroku

heroku drains:add <api endpoint from serverless deploy> -a <heroku app name>

About

Heroku doesn't provide a native way of storing and retreiving old logs. Moreover, it doesn't provide any sort of monitoring or analyzing on the logs. This standalone app uses API Gateway and AWS Lambda to stream logs into CloudWatch in real time. After the logs are in CloudWatch, they can be further queried and analyzed by third party providers su…

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages