aws-log-replay

3.0.0 • Public • Published

aws-log-replay

Build Status

Transform and replay a stream of AWS CloudFront, ELB Classic, or ALB logs. You can use s3scan to easily stream logs into these tools.

This project uses the AWS JavaScript SDK: you will need to configure your own credentials.

generatepath

Takes different types of logs as input and streams an object to stdout. Format of the output:

{
  "path": "/a.json?option=1", 
  "method": "GET", // can be GET or HEAD
  "referer": "Referer" // for 'cloudfront' type only
}

Supported types include "cloudfront" for CloudFront logs and "lb" for ELB Classic or ALB logs.

Usage: generatepath <type>

pathreplay

Makes replay requests to the baseurl. Expects paths to be piped to stdin. (Optional) Control concurrency of replay requests with --concurrency flag. Default is 100.

Usage: pathreplay <baseurl> [--concurrency=<n>]

sample

Emits a repeatable set of input lines piped to stdin at a given sampling rate. The number of lines emitted will approach the specific rate over sufficiently large samples, but may diverge for small sample sizes. Sampling rates should be specified as a decimal number between zero and one. Optionally accepts a filter argument that restricts the sampled set to lines matching the specified regular expression.

Usage: sample --rate=<rate> [--filter=<filter>]

/aws-log-replay/

    Package Sidebar

    Install

    npm i aws-log-replay

    Weekly Downloads

    24

    Version

    3.0.0

    License

    BSD-2-Clause

    Unpacked Size

    14.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • mbx-npm-ci-production
    • mbx-npm-ci-staging
    • mbx-npm-advanced-actions-production
    • mbx-npm-advanced-actions-staging
    • mbx-npm-09-production
    • mbx-npm-08-production
    • mbx-npm-07-production
    • mbx-npm-06-production
    • mbx-npm-05-production
    • mbx-npm-04-production
    • mbx-npm-03-production
    • mbx-npm-02-production
    • mbx-npm-01-production
    • mbx-npm-02-staging
    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-07
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-09
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-08
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci
    • mapbox-npm
    • mapbox-admin
    • mapbox-machine-user