Draino
Heroku logplex drain framework for node.js
Install / Use
/learn @csquared/DrainoREADME
draino
Heroku logplex drain framework for node.js
This repo is a work in progress / spike of the following processing architecture:
<pre> +------+ +-------------------+ +-------+ | App | +------+ HTTP(S) | | STDIN | | +------+ | App | +----------->| Draino |+-------------->|Filter | + +------+ | | |<--------------+| | |STDOUT + | +-------------------+ STDOUT +-------+ | |STDOUT | ++ ^ + v v | || | | +---------------+ | || | | | | | || | | STDIN +-------+ | h drains:add |+------+ || | +------->| | | | vv | |Filter | +---------------+ STDOUT +----------+| | ^ ^ STDOUT +-------+ |STDOUT | + | +------+ | STDOUT +------+ | App | +--------+ | App | +------+ +------+</pre>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
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
