GithubHelp home page GithubHelp logo

Comments (4)

ianrodrigues avatar ianrodrigues commented on May 22, 2024

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.

zulhfreelancer avatar zulhfreelancer commented on May 22, 2024

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.

ianrodrigues avatar ianrodrigues commented on May 22, 2024

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.

willhughes-au avatar willhughes-au commented on May 22, 2024

@zulhfreelancer

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.