stenoscope
v1.0.2
Published
Stenographer SSTableKey Reader w/ GO Binding
Downloads
3
Readme
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 )
);