tunnelsup / chromaterm Goto Github PK
View Code? Open in Web Editor NEWColorize ssh output from a linux terminal
License: GNU General Public License v2.0
Colorize ssh output from a linux terminal
License: GNU General Public License v2.0
I have been using Chromaterm to colorize Java based logging output from a ssh'd server. Usually this is just standard tailing which works fairly well. However, from time to time I find that when too much output gets rendered to quickly, the text output stops randomly and the whole terminal gets locked up.
I am using updated Linux Mint 17 on my workstation, and "C H R O M A T E R M 0.01.0" (looks like it is the latest version).
Here is my config:
$ cat ~/.chromatermrc
#config regex on
#event {SESSION CONNECTED} {#session ssh}
#event {SESSION DISCONNECTED} {#end}
#highlight {{\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}}} {bold yellow}
#highlight {{[a-zA-Z0-9-._]*\.(com|net|org)}} {bold yellow}
#highlight { any } {white}
#highlight {{permit(ted)*}} {bold green}
#highlight {{(d|D)eny}} {bold red}
#highlight {{ (E|e)rr..}} {bold white}
#highlight {INSIDE} {bold blue}
#highlight {OUTSIDE} {bold green}
#highlight {DMZ} {bold magenta}
#substitute {^Cisco %1 Version %2, %3} {Cisco %1 <134>Version %2<088>, %3}
#substitute {%1pkts encaps: %d, %3} {%1pkts encaps: <150>%2<088>, %3}
#substitute {%1pkts decaps: %d, %3} {%1pkts decaps: <120>%2<088>, %3}
#substitute {%1 uptime is %2} {%1 uptime is <150>%2<088>}
#highlight {{.*INFO .*}} {green}
#highlight {{.*WARN .*}} {yellow}
#highlight {{.*ERROR .*}} {red}
#highlight {{^20\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d}} {blue}
#highlight {{^\d\d/\d\d/\d\d \d\d:\d\d:\d\d}} {blue}
#highlight {{.*(Except(ion)?|Error).*}} {red}
#highlight {{\W*at [^(]*\([^)]*\)}} {red}
#highlight {{^Caused by: .*$}} {red}
#highlight {{\W*... \d* more$}} {red}
ct -Ge "#run {ssh} {ssh <server>}"
cat
a really large fileHi team,
how to uninstall chromaterm completely from system running macOS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.