On Tue, Jun 13, 2000 at 05:12:41PM +0100, David Malone wrote:
> On Tue, Jun 13, 2000 at 11:07:27AM -0500, Dan Nelson wrote:
> > In the last episode (Jun 13), Johan Kruger said:
> > >
> > > The man page says " ... and the first word in the message after the
> > > date matches the program, the action specified in the action
> > > field will be taken ..."
> > > Now the program should the be !4.5.6.1 or one of the ones i previously
> > > mentioned.
> >
> > That documentation is misleading, then. The hostname is definitely not
> > looked at. See syslogd.c, the logmsg() function.
! is for programmnames and not hostnames.
And I asume they work only localy.
> I've often thought it would be nice to be able to get syslogd to
> make choices based on hostname. I'm sure a patch would be easy
> enough to produce, but the trick would be to produce a good syntax
> fox syslog.conf. Are there any syslogds that can do this? What
> syntax do they use?
I have a patched version to do this.
If anyone is interessted I'm producing diffs.
--
B.Walter COSMO-Project http://www.cosmo-project.de
[EMAIL PROTECTED] Usergroup [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message