07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• news: Usenet subsystem message (especially from an NNTP — Network News Transfer<br />

Protocol — server that manages newsgroups);<br />

• syslog: messages from the syslogd server, itself;<br />

• user: user messages (generic);<br />

• uucp: messages from the UUCP server (Unix to Unix Copy Program, an old protocol notably<br />

used to distribute e-mail messages);<br />

• local0 to local7: reserved for local use.<br />

Each message is also associated with a priority level. Here is the list in decreasing order:<br />

• emerg: “Help!” There's an emergency, the system is probably unusable.<br />

• alert: hurry up, any delay can be dangerous, action must be taken immediately;<br />

• crit: conditions are critical;<br />

• err: error;<br />

• warn: warning (potential error);<br />

• notice: conditions are normal, but the message is important;<br />

• info: informative message;<br />

• debug: debugging message.<br />

9.5.2. The Configuration File<br />

The syntax of the /etc/rsyslog.conf file is detailed in the rsyslog.conf(5) manual page,<br />

but there is also HTML documentation available in the rsyslog-doc package (/usr/share/doc/<br />

rsyslog-doc/html/index.html). The overall principle is to write “selector” and “action”<br />

pairs. The selector defines all relevant messages, and the actions describes how to deal with<br />

them.<br />

9.5.2.1. Syntax of the Selector<br />

The selector is a semicolon-separated list of subsystem.priority pairs (example: auth.notice;<br />

mail.info). An asterisk may represent all subsystems or all priorities (examples: *.alert or mail.<br />

*). Several subsystems can be grouped, by separating them with a comma (example: auth,mail.<br />

info). The priority indicated also covers messages of equal or higher priority; thus auth.alert<br />

indicates the auth subsystem messages of alert or emerg priority. Prefixed with an exclamation<br />

point (!), it indicates the opposite, in other words the strictly lower priorities; auth.!notice,<br />

thus, indicates messages issued from auth, with info or debug priority. Prefixed with an equal<br />

Chapter 9 — Unix Services<br />

201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!