[SOLVED] OpenBSD - local[0-7] facilities apparently ignored by syslog
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OpenBSD - local[0-7] facilities apparently ignored by syslog
Hello everyone, and thanks for reading this post.
I've been trying to set up local facilities in syslog, but to no avail. In syslog.conf I added:
local3.* /var/log/mylog
Then, touched the new logfile and restarted syslog.
Despite this, the line seems to be ignored, as everything ends up in /var/log/messages.
Using 'logger' also proves it: 'logger -p local3.notice Test' will end up in 'messages'.
Using logger for other facility in the default config works as expected: 'logger -p ftp.info Test' will write to 'xferlog', as expected.
It is catching your "logger" message. Try changing the log level from NOTICE to INFO or something not on that list for it to get routed to /var/log/local3. Or else try readjusting the rules in syslog.conf or their order.
EDIT: I've redone the whole process, several times, and even after upgrading to 6.0, to no avail. All the sudden, I have a working setup. I have no idea what I might have done differently, but everything is working as expected, now. I'll mark the thread as solved.
Thanks, everyone!
Last edited by bonowax; 09-06-2016 at 11:41 AM.
Reason: Solved
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.