You might have already used CloudWatch log streams since the time we have started working with Lambda functions in this book. Although a pretty neat tool; CloudWatch still lacks a good interface for performing log filtering and analysis. That's where Loggly steps in! Loggly is a centralized logging solution that offers powerful filtering capabilities along with the ability to analyze historical data to help detect anomalies within log data.
In this section, we will be exploring two simple use cases where Lambda functions and Loggly can be used together--the first is where we use Lambda to pump logs from CloudWatch all the way to Loggly and the second is by leveraging a few npm modules supported by Loggly for sending your application's logs to Loggly. So, without further ado; let get started!
First up, register for a Loggly account....