Comments (4)
Hi @zulhfreelancer ! At Petco, we've been using Sumo Logic as our logs solution. To do so, we use a Lambda function to get our logs from CloudWatch and send them to Sumo Logic. I guess there is a similar solution for seding logs to Papertrail:
https://help.papertrailapp.com/kb/hosting-services/amazon-cloudwatch/
from awesome-ecs.
Hi @ianrodrigues. Thank you for sharing. Isn't that will skyrocket the cost because you will execute Lambda for every new log line you have? If you don't mind to share, how many log lines you have every month and how much you spent (in USD) for Lambda that cater the above task? Thanks.
from awesome-ecs.
Hey @zulhfreelancer, it all depends on your volume, so yes, it can skyrocket the cost. At Petco, we have 3 applications using that approach, here is our cost:
App 1 (Recently Enabled)
128 mb (Lambda Reserved Memory)
31419 (Lambda Executions per Month)
400 ms (Average Execution Duration)
= $0.03/month
App 2
128 mb (Lambda Reserved Memory)
277230 (Lambda Executions per Month)
400 ms (Average Execution Duration)
= $0.29/month
App 3
128 mb (Lambda Reserved Memory)
352490 (Lambda Executions per Month)
400 ms (Average Execution Duration)
= $0.36/month
Lambda is pretty cheap. You can check it here by yourself: https://s3.amazonaws.com/lambda-tools/pricing-calculator.html
from awesome-ecs.
You write "Isn't that will skyrocket the cost because you will execute Lambda for every new log line you have?"
I would suggest doing some research on this.
From the Cloudwatch logs page, when it comes to sending logs to S3, you'll only get them every 5 minutes: "One or more log files are created every five minutes in the specified bucket."
If you want to get realtime log processing, you'd need to look at Cloudwatch Subscriptions.
from awesome-ecs.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-ecs.