bunyan-sub
v1.1.0
Published
A CLI tool subscribes to bunyan-hub
Downloads
4
Readme
bunyan-sub
A CLI tool subscribe to [bunyan-hub](https://undozen.github.io/bunyan-hub for log record events.
install
npm i -g bunyan-sub
usage
bunyansub -l level -H -t timestamp
- -l/--level [trace|debug|info|warn|error|fatal] as bunyan levels, defaults to trace
- -H/--history if provided, reads history from bunyan-hub, which will keep last 1000 records for each level
- -t/--time timestamp if reads history, this param provide starting time
- -p/--port change listening port instead of using default 28692
- --host change host to connect instead of localhost, it's not safe to expose 28692 to public since bunyan-hub have no authorization layer. You could better use ssh -L to forward remote to local and use
bunyansub -p
.
Other parameters will send to bunyan cli, for example -s or -c, please refer to bunyan doc on cli usage. If -s not provided, will output new-line determined JSONs.
license
MIT