1.1.0 • Published 3 years ago

bunyan-log-sort v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

bunyan-log-sort

Sorts bunyan formatted logs according to their time field. This way you can easily concat various bunyan log files and still get the result ordered. Also wraps non bunyan lines into interpolated bunyan logs and attempts to merge bunyan lines that were split into multiple lines (by journalctl for instance).

Installation

Using yarn

yarn global add bunyan-log-sort

Usage

option -r reverses order (Newest last).

$ cat your.log | bunyan-sort [-r] | bunyan

1.1.0

3 years ago

1.0.0

4 years ago