you can log these to one central syslog server using logger(1) command
to set facility and priority of the log message. set syslog.conf on
the various machines to send log messages of that facility and priority
on to the remote central syslog server.  Set the syslog server to log
messages of that facility and priority to a specific file.  Rotate logs
as needed.  logs will include hostname and timestamp for happy grepability
and sorting.
On Mon, Nov 27, 2000 at 06:04:03AM +0000, Dustin Puryear wrote:
<em>> Scott Harney wrote:
<em>> > 
<em>> > in addition to CVS, lotsa admin types used the simpler RCS for this as 
well.
<em>> > I know that the O'Relly "Essential System Administration" has
<em>> > details on this methodology.  The "Red Book" on Unix system 
administration
<em>> > (it's purple now, actually) may have some details as well.
<em>> 
<em>> Actually, I already use RCS when I am working with configuration files.
<em>> I've come to the conclusion that I wanted something that did
<em>> everything--unfortunately, it doesn't exist. Rather, I am just going to
<em>> continue using RCS and my existing log.event script. In the near future
<em>> I hope to create a program that will work similar to log.event, but log
<em>> multiple hosts to one central database that I can easily review/scan. As
<em>> of now each UNIX host has a file named /var/log/event.log (or
<em>> /var/adm/event.log depending on the platform) that holds the logs.
<em>> 
<em>> Regards, Dustin
<em>> 
<em>> > 
<em>> > On Tue, Nov 21, 2000 at 04:50:46PM +0000, Dustin Puryear wrote:
<em>> > > [EMAIL PROTECTED] wrote:
<em>> > >
<em>> > > > Dustin, I am using the gnome Time Tracking Tool. It is
<em>> > > > cheesy but documents my time and task. There is a free
<em>> > > > web based program called Bugzilla that be more of a
<em>> > > > trouble ticket processor than a tracking tool.
<em>> > >
<em>> > > We don't run have Gnome or GTK (or usually even X) installed on our
<em>> > > servers. Plus, we run SCO OSR5 as well, which may or may not have a 
Gnome
<em>> > > port. I was hoping for a very nice console based tool. As I mentioned 
in
<em>> > > [EMAIL PROTECTED] I already have a script (shown below) that does 
some of
<em>> > > what I need. However, I was hoping for something that already had a
<em>> > > built-in log query tool, and maybe would allow me to log all events 
across
<em>> > > servers to one central database. Time to start coding apparently.
<em>> > >
<em>> > > #!/bin/sh
<em>> > >
<em>> > > USERNAME=$1
<em>> > > COMMENT=$2
<em>> > > DATE=`date '+%m/%d/%y %H:%M:%S'`
<em>> > > FILE=/var/log/event.log
<em>> > >
<em>> > > if [ $# -ne 2 ]; then
<em>> > >         echo "bad arguments"
<em>> > >         echo "usage: log.event username log-entry"
<em>> > >         exit
<em>> > > fi
<em>> > >
<em>> > > awk -F : '{print $1}' /etc/passwd | grep --silent \^$USERNAME\$
<em>> > > if [ $? -ne 0 ]; then
<em>> > >         echo "you did not supply a proper username"
<em>> > >         exit
<em>> > > fi
<em>> > >
<em>> > > echo "$DATE $USERNAME $COMMENT" >> $FILE
<em>> > >
<em>> > > Regards, Dustin
<em>> > >
<em>> > >
<em>> > > >
<em>> > > >
<em>> > > > Bob
<em>> > > > > Does anyone know of a simple to use and open source (or at least 
free)
<em>> > > > > package used to log MIS administrative work for Linux/UNIX? We use
<em>> > > > > notebooks to log admin work for our UNIX and NT servers, and 
frankly,
<em>> > > > > it's a pain. It would be nice to just log actions using a 
command-line
<em>> > > > > or web-based tool (preferably both).
<em>> > > > >
<em>> > > > > Thanks, Dustin
<em>> > > > >
<em>> > > > > --
<em>> > > > > Dustin Puryear
<em>> > > > > In the beginning the Universe was created.
<em>> > > > > This has been widely regarded as a bad move.
<em>> > > > > - Douglas Adams
<em>> > > > >
<em>> > > > >
<em>> > > > >
<em>> > > > > ================================================
<em>> > > > > BRLUG - The Baton Rouge Linux User Group
<em>> > > > > Visit http://www.brlug.net for more information.
<em>> > > > > Send email to [EMAIL PROTECTED] to change
<em>> > > > > your subscription information.
<em>> > > > > ================================================
<em>> > > > ================================================
<em>> > > > BRLUG - The Baton Rouge Linux User Group
<em>> > > > Visit http://www.brlug.net for more information.
<em>> > > > Send email to [EMAIL PROTECTED] to change
<em>> > > > your subscription information.
<em>> > > > ================================================
<em>> > >
<em>> > > --
<em>> > > Dustin Puryear
<em>> > > In the beginning the Universe was created.
<em>> > > This has been widely regarded as a bad move.
<em>> > > - Douglas Adams
<em>> > >
<em>> > >
<em>> > >
<em>> > > ================================================
<em>> > > BRLUG - The Baton Rouge Linux User Group
<em>> > > Visit http://www.brlug.net for more information.
<em>> > > Send email to [EMAIL PROTECTED] to change
<em>> > > your subscription information.
<em>> > > ================================================
<em>> > 
<em>> > --
<em>> > Scott Harney<[EMAIL PROTECTED]>
<em>> >  PGP Key fingerprint = 6D 31 C3 00 77 8C D1 C2 59 0A 01 E3 AF 81 94 63
<em>> > ================================================
<em>> > BRLUG - The Baton Rouge Linux User Group
<em>> > Visit http://www.brlug.net for more information.
<em>> > Send email to [EMAIL PROTECTED] to change
<em>> > your subscription information.
<em>> > ================================================
<em>> 
<em>> -- 
<em>> Dustin Puryear <[EMAIL PROTECTED]>
<em>> In the beginning the Universe was created. 
<em>> This has been widely regarded as a bad move.
<em>> - Douglas Adams
<em>> ================================================
<em>> BRLUG - The Baton Rouge Linux User Group
<em>> Visit http://www.brlug.net for more information.
<em>> Send email to [EMAIL PROTECTED] to change
<em>> your subscription information.
<em>> ================================================

-- 
Scott Harney<[EMAIL PROTECTED]>
 PGP Key fingerprint = 6D 31 C3 00 77 8C D1 C2 59 0A 01 E3 AF 81 94 63
================================================
BRLUG - The Baton Rouge Linux User Group
Visit http://www.brlug.net for more information.
Send email to [EMAIL PROTECTED] to change
your subscription information.
================================================

<!-- body="end" -->
<hr noshade>
<ul>
<li><strong>Next message:</strong> Dustin Puryear: "Re: [brluglist] logging 
administrative work"
<li><strong>Previous message:</strong> Dustin Puryear: "[brluglist] Meeting 
next Monday"
<li><strong>In reply to:</strong> Dustin Puryear: "Re: [brluglist] logging 
administrative work"
<li><strong>Next in thread:</strong> Dustin Puryear: "Re: [brluglist] logging 
administrative work"
<li><strong>Reply:</strong> Dustin Puryear: "Re: [brluglist] logging 
administrative work"
<li><strong>Messages sorted by:</strong> 
[ date ]
[ thread ]
[ subject ]
[ author ]
[ attachment ]
</ul>
<hr noshade>

<small>
<em>
This archive was generated by hypermail 2.1.2 
: <em>Thu Sep 06 2001 - 11:10:49 CDT</em>
</em>
</small>
</body>
</html>

Reply via email to