Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.35 KB

README.md

File metadata and controls

18 lines (10 loc) · 1.35 KB

Centralized Logging

The Centralized Logging service enables developers to ship their logs from CloudWatch Logs to Logz.io.

How this works

This service will deploy a Lambda function, based on the log.io shipper Lambda. This Lambda function will take Cloudwatch Logs as inputs, and ship them to logz.io. Each service subscribes itself to the logging function upon deployment using the serverless-log-forwarding plugin.

Getting Started

Before deploying this service, register and log into a logz.io account and find your Logz.io API Token

We need to add this token to AWS Systems Manager Parameter Store. Ths should be added manually since it is a secret and should not be committed to source control!

To do this, log into the AWS Management Console and navigate to Systems Manager (SSM). Under Shared Resources, navigate to Parameter Store.

Create a Secure String Parameter with the name /<STAGE>/logging/logzio/token (Replace <STAGE> with the stage you are configuring (stg, prod, etc.). Enter the value retrieved from your Logz.io account.

SLIC Starter Lambdas use pino as the logger, outputing structured JSON.