The Centralized Logging service enables developers to ship their logs from CloudWatch Logs to Logz.io.
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.
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 /logging/logzio/token
. Enter the value retrieved from your Logz.io account.
SLIC Starter Lambdas use pino as the logger, outputing structured JSON.