Socket
Socket
Sign inDemoInstall

aws-log-replay

Package Overview
Dependencies
143
Maintainers
59
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-log-replay

Transform and replay CloudFront, ELB Classic, and ALB logs.


Version published
Weekly downloads
13
increased by225%
Maintainers
59
Install size
96.6 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 15 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc