On Fri, Mar 21, 2003 at 03:30:30PM -0500, Hong Tian wrote: > > To do what you want feed the messages into a named pipe that is > > processed by a script. > I should create the script on syslogd client not on syslogd server, is it > right? No, the script the reads from the named pipe would be installed on the syslogd server. > > > mkfifo /var/log/hostLogging > Could I use touch instead of mkfifo? What is the benefit by using mkfifo? No. the denefit of mkfifo is that it creates the named pipe.
> > > To do what you want feed the messages into a named pipe that is > > processed by a script. > Do you have a sample of MyHostLogScript? No, but my consulting practice can write one for you..$ :-) Hong its very clear that you have already learned a great deal about Linux but you still need to do a certain amount of reading and learning to fully understand what you are trying todo. So here is some homework: man syslogd.conf man mkfifo google "Named Pipes" (and pick out an introduction) man syslog After you study all that and try to build a script it will be a good time to ask some more questions. You don't have enough knowledge to benefit from any further help at this point. (unless you were hoping somebody was just going to drop a solution in your lap.) :-) > > Thanks! > > -----Original Message----- > From: Jeff Kinz [mailto:[EMAIL PROTECTED] > Sent: Friday, March 21, 2003 10:18 AM > To: [EMAIL PROTECTED] > Subject: Re: syslogd > > > On Fri, Mar 21, 2003 at 09:52:21AM -0500, Hong Tian wrote: > > ............. My question is how to > > modify the syslog configuration file so that each log client can send its > > log data separately to the log server based on its host name. > > You can't configure the normal syslog daemon to separate the messages > into separate files based on the hosts from which they were received. The > syslog facility allows separation and filtering based on the "facility" > and "severity". Do a "man syslogd.conf" for more info > > To do what you want feed the messages into a named pipe that is > processed by a script. > > To set this up create a file that is a named pipe > > mkfifo /var/log/hostLogging > > In your rc.local system init script add a line that starts up the script > which reads from this pipe > > MyHostLogScript < /var/log/hostLogging > > Add a line to /etc/syslog.conf like: > > *.* |/var/log/hostLogging > > > And create the script MyHostLogScript which reads the output of the pipe > and sends the output from each host to its own respective file. > > > > > > -- > Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] > copyright 2003. Use is restricted. Any use is an > acceptance of the offer at http://www.kinz.org/policy.html. > > > > > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] copyright 2003. Use is restricted. Any use is an acceptance of the offer at http://www.kinz.org/policy.html. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list