This time Lorne <[EMAIL PROTECTED]> becomes daring and writes: > On Saturday 30 November 2002 12:00 am, Vox wrote: >> This time Lorne <[EMAIL PROTECTED]> >> >> becomes daring and writes: >> > Thanks. That is an excellent idea! Now I have to try to remember how to >> > keep the tail of a log constantly writing to the monitor. I KNOW I can do >> > it, just so long since I have, I forget the syntax. :) >> >> tail -f /var/log/messages >> >> I run it through colortail (don't know if it still exists out >> there...I keep my tarball in a backup CD :) so I can notice >> immediately when something I need to know happens. >> >> Vox, who still hates sympa > > OOH! I like that too! I imagine you can tell it key words to color?
Yes, that's that :) What I do is:
- turn everything back to white (too many damn colors make it hard to
notice things for me...the default config is a pain for my eyes)
- Mark the name of my workstation in a dark color (same with other
workstations and servers that log on my box, different color for each)
- Mark the name of my firewall in a bright color
- Mark the word "root" in bright red
- Mark IPs in yellow
- Mark the string DPT (destination port in iptables' logging) in
yellow
- Mark the word ATTACK in red
That simple set of rules means that whenever I see red on the top of
my screen, it's time for me to look up and see WTH is going on. The
yellow markers allow me to find the important information faster.
I run all of this from a script that gets run when I log into
Enlightenment, and it's permanently etched on all my virtual
desktops :)
http://people.gnulinux.org.mx/vox/shot_06-10-02_013605.jpg
That's a screenshot of how it looks like, running from a silly
script that does this:
Eterm -O --cmod-blue 50 --cmod-green 50 --cmod-red 50 -x --no-cursor \
--scrollbar 0 --buttonbar 0 --name tail -e /home/vox/bin/tailer
And tailer is:
sudo -S colortail -f --lines=7 -q -k /etc/colortail/conf.messages \
/var/log/messages
You can grab my conf.messages from:
http://people.gnulinux.org.mx/vox/conf.messages
Vox, who still hates sympa
--
Think of the Linux community as a niche economy isolated by its beliefs. Kind
of like the Amish, except that our religion requires us to use _higher_
technology than everyone else. -- Donald B. Marti Jr.
msg61933/pgp00000.pgp
Description: PGP signature
