@mikestaub/serverless-papertrail-logging
v1.2.0
Published
Serverless plugin for log delivery from CloudWatch Logs to Papertrail using a lambda function with log groups subscription
Downloads
1
Readme
serverless-papertrail-logging
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
- Install npm package:
yarn add @keboola/serverless-papertrail-logging --dev
- Add plugin to your
serverless.yml
:
custom:
papertrail:
port: 1234
host: logs.papertrailapp.com
hostname: serviceName
program: stage
plugins:
- '@keboola/serverless-papertrail-logging'
It must be put before serverless-webpack and other similar plugins to work correctly.
port
- required, port number assigned for you by Papertrailhost
- optional, default islogs.papertrailapp.com
hostname
- optional, default is service nameprogram
- optional, default is service stage