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}
- Use the following command to ssh:
ct -Ge "#run {ssh} {ssh <server>}"
- On the server,
cat a really large file
- Notice that eventually the output stops, and the terminal freezes and is unresponsive
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:
ct -Ge "#run {ssh} {ssh <server>}"cata really large file