[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] tailing logs across multiple servers
- Subject: RE: [cobalt-users] tailing logs across multiple servers
- From: "Dean Hall" <dean@xxxxxxxxxx>
- Date: Fri Aug 17 03:44:56 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Don't bother ... use existing logging facilities.
See below.
>
> Does anyone have any pointers to how I can write a shell
> script or whatever, to be able to tail maillogs across multiple RAQs?
>
> I would like to run one command that then ssh's to multiple
> RAQs and tails the output from the maillog to one screen. The
> times may be out of sync slightly which may make things look
> funny but at least I can see what mails are being delivered
> without too many windows open.
>
Mail logging is done using the syslog facility.
Try "man syslog" and "man syslog.conf"
An "out of the box" RaQ 4 will have the following
entry in /etc/syslog.conf
# Log all the mail messages in one place
mail.* /var/log/maillog
Assume you have 3 RaQ's, dopey, sleepy, and grumpy.
Add another line like this on dopey and sleepy ...
mail.* /var/log/maillog
mail.* @grumpy
Make syslogd see the change by sending a HUP signal to
syslogd. Like this:
[root@raq4:/etc] # ps -ef|grep syslogd
root 298 1 0 Jun20 ? 00:00:08 syslogd -m 0
[root@raq4:/etc] # kill -SIGHUP 298
This will cause all mail messages to be sent to grumpy's
log also.
Now you only have to look at grumpy's log to see all the
systems mail logs.
----
Dean Hall at Tactix ReEngineering ( dean@xxxxxxxxxx )
503 520-9699 http://www.tactix.com