stenoscope

1.0.2 • Public • Published

image

Stenoscope

A golang scanner & JSON parser for PCAP SST index files generated by stenographer with NodeJS binding

Command Line

Compile the command line version using go 1.10+

go build

Usage

JSON
./SSTableKeys /data/stenographer/1/thread0/index $(date -d '1 minute ago' +%s) $(date +%s)

NodeJS Module

Compile the native binding for nodejs (or download a prebuilt version)

npm install stenoscope

Usage

const stenoscope = require('stenoscope');

var fromtime = parseInt(new Date().getTime()/1000) - 60;
var totime = parseInt(new Date().getTime()/1000);

console.log(
  stenoscope.sstj('/var/lib/stenographer/thread0/index', fromtime, totime )
);

Package Sidebar

Install

npm i stenoscope

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

136 kB

Total Files

24

Last publish

Collaborators

  • lmangani