Skip to content

single elixir script to ingest, visualize, and filter logs from your system

License

Notifications You must be signed in to change notification settings

carlo-colombo/streamlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlog

Local log viewer supporting filtering and highlighting all in a single elixir script, using Phoenix Live View through phoenix_playground.

  • Regex based filtering and highlighting
  • Filtered out logs are retained (until streamlog runs)
tail -f some-log-file | <path-to>/streamlog.exs --open --port 9090 --title 'some-log-file logs'

streamlog filtering ngnix logs

Usage

Download streamlog.exs and ensure is executable chmod+x

tail -f some-log-file | <path-to>/streamlog.exs --open --port 9090 --title 'some-log-file logs'

or

./some-program-loggin-on-stdout | <path-to>/streamlog.exs --port 9091 --title 'program logs'

Options

  • --port to run on a different port than the defaul (5051)
  • --title to assign a title to the page
  • --open open Streamlog in the browser

Technicalities

  • logs are stored in an ets table in memory.
  • streamlog exposes Phoenix Live Dashboard on /dashboard for debug purpose and curiosity.

About

single elixir script to ingest, visualize, and filter logs from your system

Topics

Resources

License

Stars

Watchers

Forks

Languages