An open API service indexing awesome lists of open source software.

https://github.com/dougmoscrop/lamberjack

Ship CloudWatch Logs to Firehose!
https://github.com/dougmoscrop/lamberjack

aws kinesis-firehose lambda serverless

Last synced: about 1 year ago
JSON representation

Ship CloudWatch Logs to Firehose!

Awesome Lists containing this project

README

          

# lamberjack

Ship your CloudWatch logs to Firehose for centralized logging, etc.

## Usage

`lamberjack(event, options)`

This library comes with sensible defaults, the only option required is the deliveryStreamName.

```js
const lamberjack = require('lamberjack')

module.exports.handler = (event, context, callback) => {
lamberjack(event, { deliveryStreamName: 'test' })
.then(() => callback())
.catch(e => callback(e))
};
```

## Options

(as seen: default values)

```js
{
retry: {
delay: 200, // milliseconds, used exponentially in backoff
limit: 3 // number of retries
},
firehose: undefined // a custom firehose client to use
transform: undefined // try to parse the JSON record, or { message } if not parsable
}
```