Socket
Socket
Sign inDemoInstall

draino

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draino

draino ======


Version published
Maintainers
1
Created
Source

draino

Heroku logplex drain framework for node.js

This repo is a work in progress / spike of the following processing architecture:

  +------+                            +-------------------+                +-------+
  | App  |   +------+       HTTP(S)   |                   |     STDIN      |       |
  +------+   | App  |    +----------->|      Draino       |+-------------->|Filter |
   +         +------+    |            |                   |<--------------+|       |
   |STDOUT     +         |            +-------------------+     STDOUT     +-------+
   |           |STDOUT   |                  ++        ^  +
   v           v         |                  ||        |  |
 +---------------+       |                  ||        |  |
 |               |       |                  ||        |  | STDIN  +-------+
 | h drains:add  |+------+                  ||        |  +------->|       |
 |               |                          vv        |           |Filter |
 +---------------+                        STDOUT      +----------+|       |
      ^        ^                                           STDOUT +-------+
      |STDOUT  |
      +        |
     +------+  | STDOUT   +------+
     | App  |  +--------+ | App  |
     +------+             +------+

All you have to do is write the filters, which are any UNIX program that can parse JSON.

Draino spawns everything in the ./filters directory and pipes log data into STDIN as one JSON object per line.

Modes

usage

npm install draino

-f single filter

draino -f path/to/filter

-d directory of filters

draino -f path/to/filter

--heroku normalize logplex metadata to logfmt

draino -f path/to/filter --heroku

--logfmt parse logfmt logs and emit JSON

draino -f path/to/filter --heroku --logfmt

FAQs

Package last updated on 11 Jun 2014

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