Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Architectures

You're reading from   Building Serverless Architectures Unleash the power of AWS Lambdas for your applications

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787129191
Length 242 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Cagatay Gurturk Cagatay Gurturk
Author Profile Icon Cagatay Gurturk
Cagatay Gurturk
Arrow right icon
View More author details
Toc

Creating CloudWatch metrics from application logs

As we've seen before, Lambda functions save their log events to CloudWatch. This lets us to watch our application's status easily, and we do not have to maintain any logging infrastructure for that. This is already a cool feature.

If you've ever used a logging solution such as Kibana, you should be familiar with saving search patterns in it, so you can create graphs using the occurrence frequency of a pattern in your logs. This is possible to have some functionality very easily in CloudWatch logs. This feature is called Create Metric Filter and automatically tests custom patterns against log lines and pushes them as a metric to CloudWatch. With that, for example, you can see how many times your log contained an ERROR string, you can monitor it via CloudWatch graphics, or you can even create alarms and take action...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime