Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 09:43:29 +0800
From:      Ben Woods <woodsb02@gmail.com>
To:        Jim McIver <jmciver@lmtribune.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: freebsd 10 syslog server
Message-ID:  <83EB0B5B-7D94-4FC7-A578-FBA009A17332@gmail.com>
In-Reply-To: <1916139826.11461.1483125073411.JavaMail.zimbra@lmtribune.com>
References:  <1916139826.11461.1483125073411.JavaMail.zimbra@lmtribune.com>

next in thread | previous in thread | raw e-mail | index | archive | help




Sent from my iPhone
> On 31 Dec 2016, at 3:11 am, Jim McIver <jmciver@lmtribune.com> wrote:
> 
> Syslog messages going to /var/log/messages rather than /var/log/apac.log 
> 
> Followed documentation from: 
> 
> https://www.freebsd.org/doc/handbook/configtuning-syslog.html 
> 
> I found where this is happening to someone else, but no answer. 
> 
> https://lists.freebsd.org/pipermail/freebsd-questions/2011-November/235565.html 
> 
> I even did debug option and it showed message logging to /var/log/messages. 
> 
> Yes the /var/log/apac.log file exists. 
> 
> As the message in /var/log/messages says " <user.notice> apac jim: test message" I wonder if the line in the top of the /etc/syslog.conf that says "*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages" is why they go to /var/log/messages? 
> 
> It mentions "notice" going to /var/log/messages and that's what shows in /var/log/messages. 
> 
> thought? 
> -jm

Hi Jim,

Can you please provide the contents of your /etc/syslog.conf file, and also the relevant lines from /etc/rc.conf? What version of FreeBSD are you running?

Note that I believe syslog will log a message multiple times if it matches multiple rules in syslog.conf, but I could be wrong here.

I also recommend having a read of the syslog.conf(5) man page:
https://man.freebsd.org/syslog.conf

Regards,
Ben


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83EB0B5B-7D94-4FC7-A578-FBA009A17332>