Settings

Theme

Monitoring Tiny Lambdas

intmaker.com

13 points by ribtoks 3 years ago · 5 comments

Reader

ribtoksOP 3 years ago

Inspired by Julia Evan's write-up on web-services, I wanted to show how I automated log monitoring in AWS

harrisonjackson 3 years ago

This is great! Hopefully the lambda you're using to aggregate your error logs doesn't have any issues. Though lack of signal is a signal, too.

We use logz.io which is a managed elk stack. It has a free tier with 1 day of log retention. They have a lambda log shipper that sends new cloudwatch logs to your dashboard where you can filter, search, and setup alerts.

  • ribtoksOP 3 years ago

    For me using my lambda is definitely better than having a dependency on yet another external service (like the logz.io advertisement in your comment).

    • harrisonjackson 3 years ago

      Oh I get that for sure. My real recommendation was for the elk-stack in general. One can self-host it pretty easily depending skillsets. The service I recommended just makes it about as easy as your email aggregator.

      The email aggregator is great but if you need an actual way to search through your logs, maybe after the email aggregator alerts you that "some requests failed" doing it in cloudwatch is not so fun.

moltar 3 years ago

AWS has built in ability to alert of log queries. Can even do fancy stuff like parsing JSON values and aggregating them.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection