Hi,

the default etc/syslog.conf has a commented out example for by-prog
logging, but nothing for by-host logging. I fighted a bit with it; so
why not providing an example in the EXAMPLES section of the manpage ?

Landry

Index: syslog.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslog.conf.5,v
retrieving revision 1.34
diff -u -r1.34 syslog.conf.5
--- syslog.conf.5       6 Jul 2016 19:29:13 -0000       1.34
+++ syslog.conf.5       31 Jan 2018 19:40:59 -0000
@@ -306,6 +306,10 @@
 # Root and Eric get alert and higher messages.
 *.alert                                                        root,eric
 
+# Log everything coming from host bastion to a separate file
+++bastion                                              /var/log/bastion
++*
+
 # Save mail and news errors of level err and higher in a
 # special file.
 mail,news.err                                          /var/log/spoolerr

Reply via email to