tailchart
A smarter way to follow files and logs.
Install
npm install -g tailchart
Usage
tailchart
Make the assumption that you have a config.json
file in the current directory.
You can specific the path of the configuration file by using the
tailchart --config mypath/conf.json
Once running, press "r" to reset the value in the different widgets.
Configuration
At this point in time, tailchart require a configuration file to starts.
When running, tailchart display info of the full surface of the terminal window. You position and size the different widgets by using a grid system.
Below is an example of a valid configuration (comments are automatically stripped out):
Widgets
RawLog
Display all the logs line. Optionally:
- trim the N first character of the line (perfect to remove useless prefix)
- display in a specific color lines matching a regular expression
FilterLog
Same functionality as RawLog with the twist that it display only the lines that are matching a regular expression.
Counter
Count how many times something happen, and its frequency compare to other match. Perfect to visualize the distribution of error, type of queries, status code, etc
Dreamlist
- Read from stdin to allow piping
- Zero config start
- In program UI to add/modify/remove widgets
- Config import (like blue print in Factorio)
- Save / Load config
- Replay logs