Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
syslog.conf - putting stuff where you want it2 April 1999
The default /etc/syslog.conf displays many messages directly on the
console. That may not be what you want. Here's how to change that.
syslog is the function used by many programs to write a message to the system
message logger (syslogd). The syslogd daemon reads and logs
messages to the system console, log files, other machines and/or users as specified by its
configuration file (/etc/syslog.conf).
The first thing you need to know about syslog.conf is that it needs tabs, not spaces.
So if you modify your file and suddenly start getting errors
like this, then you probably added spaces not tabs. Note that ee add
spaces even if you press tab whereas vi does not. If in doubt, check it
Here is the default syslog.conf as it comes with FreeBSD 3.1:
# $Id: syslogconf.php,v 1.22 2007/08/27 16:34:48 dan Exp $
# Spaces are NOT valid field separators in this file.
# Consult the syslog.conf(5) manpage.
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
Here is the syslog.conf file I created for a friend (the first line is split
The first thing you should notice is that I've removed /dev/console from
the file. The site did not want any messages appearing on the console. Some
people are like that. You'll also see that various other messages are diverted to
other places. That's what they wanted. You will have to decide if that's for
you or not.
After making changes
After you make changes to /etc/syslog.conf, remember to tell syslogd
about them! The following command will make syslogd read its configuration