Skip to Content
Linux Server Security, Second Edition
book

Linux Server Security, Second Edition

by Michael D. Bauer
January 2005
Intermediate to advanced
544 pages
23h 44m
English
O'Reilly Media, Inc.
Content preview from Linux Server Security, Second Edition
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
syslog
|
407
Conguring syslog
Whenever syslogd, the syslog daemon, receives a log message, it acts based on the
message’s type (or “facility”) and its priority. syslog’s mapping of actions to facilities
and priorities is specified in /etc/syslog.conf. Each line in this file specifies one or
more facility/priority selectors followed by an action; a selector consists of a facility
or facilities and a (single) priority.
In the following syslog.conf line in Example 12-1,
mail.notice is the selector and /var/
log/mail
is the action (i.e., “write messages to /var/log/mail”).
Within the selector,
mail is the facility (message category) and notice is the level of
priority.
What About klogd?
One daemon you probably won’t need to reconfigure but should still be aware of is
klogd, Linux’s kernel log daemon. This daemon is started automatically at boot time
by the same script that starts the general system logger (probably /etc/init.d/syslogd or
/etc/init.d/sysklogd, depending on which Linux distribution you use).
By default, klogd directs log messages from the kernel to the system logger, which is
why most people don’t need to worry about klogd: you can control the handling of ker-
nel messages by editing the configuration file for syslogd.
This is also true if you use Syslog-ng instead of syslog,
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Building Secure Servers with Linux

Building Secure Servers with Linux

Michael D. Bauer
Linux Security Cookbook

Linux Security Cookbook

Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes

Publisher Resources

ISBN: 0596006705Catalog PageErrata