Trying to figure out if there's a way to get syslog.conf to direct remote logging from a wireless access point to log to a separate file instead of the main syslog and can't figure out how that could be done from man syslog.conf (or man 2/3 of syslog) this clearly doesn't work 192.168.1.251.* /var/log/WAP-2.log which according to the man page, makes sense since this the IP address is not a facility. Is there a way to do this that I am missing? Craig
on 11-19-2008 4:02 PM Craig White spake the following:> Trying to figure out if there's a way to get syslog.conf to direct > remote logging from a wireless access point to log to a separate file > instead of the main syslog and can't figure out how that could be done > from man syslog.conf (or man 2/3 of syslog) > > this clearly doesn't work > > 192.168.1.251.* /var/log/WAP-2.log > > which according to the man page, makes sense since this the IP address > is not a facility. > > Is there a way to do this that I am missing? > > CraigI'm not 100% sure that you can do this with the stock syslogd. You might need something like rsyslog to handle that. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20081119/db74a33f/attachment-0003.sig>
On Wed, Nov 19, 2008 at 6:02 PM, Craig White <craigwhite at azapple.com> wrote:> Trying to figure out if there's a way to get syslog.conf to direct > remote logging from a wireless access point to log to a separate file > instead of the main syslog and can't figure out how that could be done > from man syslog.conf (or man 2/3 of syslog) > > this clearly doesn't work > > 192.168.1.251.* /var/log/WAP-2.log > > which according to the man page, makes sense since this the IP address > is not a facility. > > Is there a way to do this that I am missing?The AP's syslog parms must match the syslog.conf parms. e.g., for a MikroTik AP, [root at catch22 ~]# grep -i mikrotik /etc/syslog.conf # MikroTik router messages user.* /var/log/mikrotik.log [root at catch22 ~]# rgds/ldv
On Wed, Nov 19, 2008 at 7:02 PM, Craig White <craigwhite at azapple.com> wrote:> Trying to figure out if there's a way to get syslog.conf to direct > remote logging from a wireless access point to log to a separate file > instead of the main syslog and can't figure out how that could be done > from man syslog.conf (or man 2/3 of syslog) > > this clearly doesn't work > > 192.168.1.251.* /var/log/WAP-2.log > > which according to the man page, makes sense since this the IP address > is not a facility. > > Is there a way to do this that I am missing?The stock syslog package can't do this. You need rsyslog to make this happen. You can set up various templates and filters based on the log file information also. See http://www.bofh-hunter.com/2007/12/31/centralized-logging-with-centos-and-rsyslog/ for a brief walkthrough on the basics. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell