@alertlogic/al-aws-collector-js
Alert Logic AWS Collector Common Library
Last updated 18 days ago by autobuild-al .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @alertlogic/al-aws-collector-js 
SYNC missed versions from official npm registry.

al-aws-collector-js

Build Status ALPS build

Alert Logic cloud collector AWS common library.

Overview

This repository contains the common JavaScript functions used by Node.js collectors in the AWS cloud.

HOWTO use this library in an AWS Lambda function

To install: npm i @alertlogic/al-aws-collector-js

in your file

const {
    AlAwsCollector,
} = require('@alertlogic/al-aws-collect-js');

API

AlAwsCollector

Base class for AWS lambda based collectors

  • @param {Object} context - context of Lambdas function.
  • @param {string} collectorType - collector type (cwe as example).
  • @param {string} ingestType - ingest data type (secmsgs, vpcflow, etc).
  • @param {string} version - version of collector.
  • @param {Object} aimsCreds - Alert Logic API credentials.
  • @param {string} [aimsCreds.access_key_id] - Alert Logic API access key id.
  • @param {string} [aimsCreds.secret_key] - Alert Logic API secret key.
  • @param {function} formatFun - callback formatting function
  • @param {Array.<function>} healthCheckFuns - list of custom health check functions (can be just empty, so only common are applied)
  • @param {Array.<function>} statsFuns - list of custom stats functions (can be just empty, so only common are applied)

Debugging

To get a debug trace, set an Node.js environment variable called DEBUG and specify the JavaScript module/s to debug.

E.g.

export DEBUG=*
export DEBUG=index

Or set an environment variable called "DEBUG" in your AWS stack (using the AWS console) for the "alertlogic-cwe-collector" AWS Lambda function, with value "index" or "*".

See debug for further details.

Useful Links

Current Tags

  • 3.0.5                                ...           latest (18 days ago)

25 Versions

  • 3.0.5                                ...           18 days ago
  • 3.0.4                                ...           a month ago
  • 3.0.3                                ...           a month ago
  • 3.0.2                                ...           2 months ago
  • 3.0.1                                ...           2 months ago
  • 3.0.0                                ...           2 months ago
  • 2.0.11                                ...           2 months ago
  • 2.0.10                                ...           3 months ago
  • 2.0.9                                ...           3 months ago
  • 2.0.8                                ...           3 months ago
  • 2.0.7                                ...           3 months ago
  • 2.0.6                                ...           3 months ago
  • 2.0.5                                ...           4 months ago
  • 2.0.4                                ...           6 months ago
  • 2.0.3                                ...           6 months ago
  • 2.0.2                                ...           6 months ago
  • 2.0.1                                ...           6 months ago
  • 2.0.0                                ...           6 months ago
  • 1.3.1                                ...           10 months ago
  • 1.3.0                                ...           10 months ago
  • 1.2.0                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 25
Last Month 125
Dependencies (5)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |