Skip to content

chakrit/bunyan-reltime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BUNYAN-RELTIME

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 your.server.example.com 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 your.server.example.com sudo tail -f /app/bunyan.log | \
  bunyan-reltime -5d | \
  head -100 | \
  bunyan

See the reltime module README for more syntax information.

About

Trim your bunyan logs so it starts from the specified time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published