[olug] Remote syslogging
    VincentR 
    vincentr at cox.net
       
    Sun May 12 04:26:04 UTC 2002
    
    
  
Syslog should be using the hostname of the system in each line of the log file.
If you really need it in seperate files you could run a script via cron to do
that.  Something like this would work:
grep host-A /var/log/messages >> /var/log/messahes.host-A
ex /var/log/messages -c ':%d/^[[:alnum:]]host-A[[:alnum:]]/' -c -wq
The synatx for ex may be wrong, but you get the idea...
Don't forget to add the new log files to /etc/logrotate.d/syslog
----- Original Message -----
From: "Chaz" <netsaint at cox.net>
To: <olug at olug.org>
Sent: Saturday, May 11, 2002 9:39 PM
Subject: [olug] Remote syslogging
Hello,
    My first post to the list.  Hope the format is correct.
I'm playing with syslog.  Sending messages from a couple RH 7.x to a third RH7.x
machine.
The syslog server stores all messages received in /var/log/messages.
I would like to tailor the logging to something like
/var/log/machine1
/var/log/machine2
etc.
For the life of me, I cannot figure this out.
In my free time I have scoured the web looking for the answer to this.
Thanks.
Chaz
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
For help contact olug-help at olug.org - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at olug.org
or `mail olug-unsubscribe at olug.org < /dev/null`
(c)1998-2002 OLUG http://www.olug.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    
    
More information about the OLUG
mailing list