node package manager



A little utility for filtering bunyan logs using reltime notation.

Install with:

$ npm install -g bunyan-reltime

For example, to stream logs from your server starting from the last 5 days, do this:

ssh sudo tail -f /app/bunyan.log | bunyan-reltime -5d | bunyan

To almost trim it down to the first 100 entries, combine it with the head command like so:

ssh sudo tail -f /app/bunyan.log | \
  bunyan-reltime -5d | \
  head -100 | \

See the reltime module README for more syntax information.