Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

nearform/cloudwatchlogs-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream interface to CloudWatch Logs

Nice streaming interface to CloudWatch Logs. Can be used from code or as a standalone Agent.

Install

npm install cloudwatchlogs-stream --save

Or to install globally as an Agent:

npm install -g cloudwatchlogs-stream --save
cloudwatchlogs -h

Usage

See cloudwatchlogs --help.

Example code:

var opts = {
  'accessKeyId': 'ACCESS_KEY',
  'secretAccessKey': 'SECRET_KEY',
  'region': 'REGION',
  'logGroupName': 'GROUP_NAME',
  'logStreamName': 'STREAM_NAME',
  'bulkIndex': 10,
  'timeout': 20  // seconds
  };
var stream = new CloudWatchLogsStream(opts);
something.pipe(stream)  

Example command line:

tail -f my.log | cloudwatchlogs -a ACCESSKEY -s SECRET_KEY -r REGION -g GROUP_NAME -t STREAM_NAME -b 20 -o 20

About

Stream interfacet to CloudWatch Logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published