New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudwatch-logs-writable

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudwatch-logs-writable

A writable stream for AWS CloudWatch Logs

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

cloudwatch-logs-writable

A writable stream to AWS CloudWatch Logs that adheres to CloudWatch Log limits (see http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html):

  • Max 10,000 entries per putLogEvents(),
  • Max 5 putLogEvents() per second,
  • Max batch size of 1,048,576 bytes

Installation

# npm install cloudwatch-logs-writable

Options

group (required)

The log group name used in AWS CloudWatch Logs. It will attempt to create the log group if it does not exist.

name (required)

The log stream name used in AWS CloudWatch Logs. It will attempt to create the stream if it does not exist.

region

The AWS region for AWS CloudWatch Logs. Only required if you do not have AWS configured elsewhere or want a different location than already configured.

accessKeyId

The AWS access key ID for the user allowed to putLogEvents(). Only required if you do not have AWS configured elsewhere or want a different location than already configured.

secretAccessKey

The AWS secret access key for the user allowed to putLogEvents(). Only required if you do not have AWS configured elsewhere or want a different location than already configured.

Usage

Below is a example of processing stdin and pushing each line to AWS CloudWatch logs.

var CloudWatchLogs = require('cloudwatch-logs-writable');
var pump = require('pump');
var split = require('split2');
var cloudwatch = CloudWatchLogs({
  group: 'log-group-name',
  name: 'log-stream-name',
  region: 'ap-southeast-2'
});

pump(process.stdin, split(), cloudwatch);

Test

# npm run test

Keywords

FAQs

Package last updated on 23 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc