Skip to content

shreyaganguly/terminator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminator

terminator is a simple commandline application that lets you run multiple services in different terminals in mac as well asmonitor the logs of the terminals to watch out for filtering keywords. It writes all the logs that matches the filtering keywords in the console or any filtering file if mentioned.Moreover it also gives a http endpoint with live reload. Browse to the webpage at anytime to see any logs that match your filter criteria.

Run

  • Write a commands.txt file that contain the commands each in a line. For e.g. the contents of commands.txt will be something like
cd vault && vault server -config=config.hcl // run vault
docker run -it php // run a docker command
  • Run the following commands
$ go get github.com/shreyaganguly/terminator
$ terminator -f commands.txt -words alertkeyword1 and alertkeyword2,alertkeyword3

This command will search for all logs matching alertkeyword1 and alertkeyword2 or alertkeyword3. Mention more or filter keywords separated by , and the and keywords separated by and. Hit http://localhost:8080 in your browser and start monitoring. Do not worry, once you stop this application it will delete all temporary log directories as well as close all the opened terminals. In one word you have a clean slate.

Start running your everyday services locally in your machine with ease!!!

About

Running microservices and log filtering made simple through terminator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages