| View previous topic :: View next topic |
| Author |
Message |
merced n00b

Joined: 23 Nov 2003 Posts: 24
|
Posted: Wed Sep 07, 2005 6:40 pm Post subject: Colorize your /dev/tty12 syslog-ng logs |
|
|
Just a quick tip. It took me a while to figure this out and seeing as I really enjoy this feature, I thought I would pass the information on.
First:
Second: In the default /etc/syslog-ng/syslog-ng.conf file, find the line that says: | Code: | | destination console_all { file("/dev/tty12"); }; | and change it to: | Code: | | destination console_all { program("ccze -r >> /dev/tty12"); }; |
Third: Restart syslog-ng: | Code: | | /etc/init.d/syslog-ng restart | and then hit Alt+F12 and start watching your colorized logs.  _________________ Merced
Last edited by merced on Thu Sep 08, 2005 4:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
Reikinio Apprentice


Joined: 14 Aug 2005 Posts: 203 Location: Uruguay
|
Posted: Thu Sep 08, 2005 3:30 am Post subject: |
|
|
Nice tip, thanks for sharing  |
|
| Back to top |
|
 |
stahlsau Guru


Joined: 09 Jan 2004 Posts: 565 Location: WildWestwoods
|
Posted: Thu Sep 08, 2005 6:50 am Post subject: |
|
|
nice one. I tried it with torsmo which tails a logfile to my rootwindow, but sadly it doesn't work - torsmo doesn't seem to know how to handle those color-codes. _________________ Join the adopt an unanswered post initiative today |
|
| Back to top |
|
 |
merced n00b

Joined: 23 Nov 2003 Posts: 24
|
Posted: Thu Sep 08, 2005 5:01 pm Post subject: |
|
|
| stahlsau wrote: | | nice one. I tried it with torsmo which tails a logfile to my rootwindow, but sadly it doesn't work - torsmo doesn't seem to know how to handle those color-codes. |
Being a loghost with no X installed, I wanted to find a solution that worked without a user logged on. Hence the ccze + syslog-ng solution. _________________ Merced |
|
| Back to top |
|
 |
|