The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

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.

unknown priority name - /etc/syslog.conf and syslogd 12 November 1998
Need more help on this topic? Click here
This article has 1 comment
Show me similar articles
When I was making logging changes to IP Filter, I found a curious characeteristics of  /etc/syslog.conf.  This file needs tabs, not spaces.  If you use spaces, you will encounter an error message similar to the following :
unknown priority name "info	/var/log/firewall.log"

If you replace the spaces with tabs, the error message will go away.  When it comes to tabs, I've found that various editor produce different results.  For example, ee produces spaces, not tabs.  But vi gives you tabs.

virus (also known as Cloud and apache), a helper on the #FreeBSD IRC channel on Undernet, gave the following tip:

printf "%s\t\t\t\t%s\n" 'ftp.*' /var/log/ftpd.log >> /etc/syslog.conf

This will append a line to the end of /etc/syslog.conf.  This tip is useful for adding new entries if you can't find an editor that will do it for you.   Then you can amend the details with your favourite editor and presumably the tabs will remain intact.


Share
Need more help on this topic? Click here
This article has 1 comment
Show me similar articles