node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »


Amazon SQS Transport for winston.

Installation via npm

  $ npm install winston
  $ npm install winston-sqs


  var winston = require('winston');
  winston.add(winston.transports.SQS, options);

The Winston SQS transport depends on aws-sdk.

The constructor options are:

  • aws_accesskeyid: Your Amazon Public Key. [required]
  • aws_secretaccesskey: Your Amazon Secret. [required]
  • aws_queueurl: The specific queue URL to write to. Found in your AWS Console. [required]
  • aws_region: AWS Region to use. (default: us-east-1)
  • level: default logging level. (default: info)
  • aws_sslenabled: whether to use SSL in communication with SQS. (default: true)
  • aws_maxretries: number of times to retry communication with SQS. (default: 3)
  • timestamp: whether to include a timestamp in the queue message. (default: true)

Note that metadata will be automatically 'stringified.'