A Winston transport for Amazon DynamoDB

DynamoDB Transport for Winston

A DynamoDB transport for winston.

  var winston = require('winston');
  winston.add(winston.transports.DynamoDB, options);
accessKeyId     : your AWS access key id
secretAccessKey : your AWS secret access key
region          : the region where the domain is hosted
tableName       : DynamoDB table name

Make a table with tableName

The table should have

  • hash key: (String) level
  • range key: (String) timestamp

Available Regions

  • us-east-1
  • us-west-1
  • us-west-2
  • eu-west-1
  • ap-northeast-1
  • ap-southeast-1
  • ap-southeast-2
  • sa-east-1

All of these options are values that you can find from your Amazon Web Services account: 'accessKeyId', 'secretAccessKey' and 'awsAccountId'.

  $ npm install winston
  $ npm install winston-dynamodb

Author: JeongWoo Chang