@vrsbrazil/winston-kinesis-transport

Transport created for Winston using AWS Kinesis

Usage no npm install needed!

<script type="module">
  import vrsbrazilWinstonKinesisTransport from 'https://cdn.skypack.dev/@vrsbrazil/winston-kinesis-transport';
</script>

README

Winston Kinesis Transport - Encapsulating a configuration to create a transport with AWS Kinesis service associated

Installing

Add to your package.json dependencies 
 npm install --save winston-kinesis-transport

or

 yarn add winston-kinesis-transport

Configuration


const options = {
    streamName: 'Stream name configured on AWS Kinesis',
    configuration: { //Configuration for AWS Service
        region: 'AWS Region',
        correctClockSkew: 'true or false, used here to activate or deactivate',
        accessKeyId: 'AWS Kinesis Access Id',
        secretAccessKey: 'AWS Kinesis secret'
    }
}

const winstonKinesisTransport = new WinstonKinesisTransport({options})