@keboola/serverless-papertrail-logging

Serverless plugin for log delivery from CloudWatch Logs to Papertrail using a lambda function with log groups subscription

Stats

StarsIssuesVersionUpdatedCreatedSize
@keboola/serverless-papertrail-logging
751.1.13 years ago4 years agoMinified + gzip package size for @keboola/serverless-papertrail-logging in KB

Readme

serverless-papertrail-logging

serverless Build Status Maintainability

Serverless plugin for log delivery from CloudWatch Logs to Papertrail using a lambda function with log groups subscription.

The plugin ignores implicit Lambda logs (starting with START, END and REPORT) and adds Lambda request id to each event. Notice that it expects the logs to be in json format (and converts them to json if they are not).

Installation

  1. Install npm package: yarn add @keboola/serverless-papertrail-logging --dev
  2. Add plugin to your serverless.yml: ```yaml custom: papertrail: port: 1234 host: logs.papertrailapp.com

plugins:

  • '@keboola/serverless-papertrail-logging' ``` It must be put before serverless-webpack and other similar plugins to work correctly.

Host name is optional and has default value logs.papertrailapp.com.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.