cloudfront-log-reader

    2.1.0 • Public • Published

    cloudfront-log-reader

    Exposes AWS CloudFront logs from S3 as a node.js readable stream and provides additional tools for working with CF logs. See api.md for JS API.

    var reader = require('cloudfront-log-reader');
    var logStream = reader.LogStream('s3://mybucket/cf-logs/');
    logStream.pipe(process.stdout);
    

    This module also provides two small wrapper commands for usings its functionality from the commandline.

    cflogreader

    Streams CF log lines to stdout.

    Usage: cflogreader <s3url>

    generatepath

    Takes different types of logs as input and streams paths to stdout. Supported types include "cloudfront" and "elb".

    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>]

    Keywords

    none

    Install

    npm i cloudfront-log-reader

    DownloadsWeekly Downloads

    20

    Version

    2.1.0

    License

    BSD

    Last publish

    Collaborators

    • emilymdubois
    • ghoshkaj
    • apendleton
    • mattficke
    • arunasank
    • alulsh
    • aarthykc
    • 1ec5
    • mapsam
    • planemad
    • amyleew
    • isiyu
    • mapbox-admin
    • yhahn
    • kkaefer
    • springmeyer
    • willwhite
    • rclark
    • morganherlocker
    • gretacb
    • miccolis
    • jfirebaugh
    • ansis
    • ingalls
    • tristen
    • mourner
    • lxbarth
    • ajashton
    • samanbb
    • nickidlugash
    • ian29
    • dnomadb
    • bsudekum
    • lbud
    • sgillies
    • karenzshea
    • freenerd
    • flippmoke
    • bergwerkgis
    • themarex
    • jrpruit1
    • sbma44
    • lyzidiamond
    • bhousel
    • mcwhittemore
    • emilymcafee
    • ianshward