<commit_before># Stream interface to CloudWatch Logs

Nice streaming interface to [CloudWatch Logs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatchLogs.html). 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

```
<commit_msg>Minor update to the readme<commit_after># Stream interface to CloudWatch Logs

Nice streaming interface to [CloudWatch Logs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatchLogs.html). 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

```

{'fraction_non_alphanumeric': 0.1347093970668115, 'fraction_numerical': 0.006518196632265073, 'mean_word_length': 4.370262390670554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834560', 'n_tokens_mistral': 661, 'n_tokens_neox': 616, 'n_words': 180}