Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-toolkit

tool kit for analyzing bunyan logs

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bunyan-toolkit

Toolkit for analyzing restify node-bunyan logs.

Pre-requisites

Ensure that both the node and bunyan binaries are on your path.

Installation

npm install -g bunyan-toolkit

Usage

# Find all requests that
# 1) have a url with a path 'Prof'
# 2) returned HTTP 200
# 3) has a latency > 600 ms
# 4) includes a header of 'accept-encoding'
# 5) with HTTP method GET
btkit -u Prof -s 200 -l 600 -H 'accept-encoding' -m 'GET' restify.log

btkit returns all queries as streaming json, so you can additionally process its output via other tools. To get the prettified output, pipe the command to bunyan

btkit -u Prof -s 200 -l 600 -H 'accept-encoding' -m 'GET' restify.log | bunyan

All of the parameters are optional. So by default,

btkit restify.log

would return all of the restify audit logs. You can additionally add more parameters to filter the logs:

btkit -s 500 restify.log | bunyan

This returns all the logs the returned a 500 response.

btki -s 500 -l 250 restify.log

would return all restify audit logs that returned a 500 response that also took longer than 250 ms.

More info

btkit -h

Internals

btkit is just a simple bash script that wraps bunyan -c. For more information on bunyan -c look here;

Keywords

FAQs

Package last updated on 29 Jun 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc