Syslog
DrModiford (Talk | contribs) m (Having a strange table issue!) |
DrModiford (Talk | contribs) m (Grrrrr) |
||
Line 35: | Line 35: | ||
| ERR | | ERR | ||
| Errors | | Errors | ||
− | | | + | | - |
|- | |- | ||
| WARNING | | WARNING | ||
| Warnings | | Warnings | ||
− | | | + | | - |
|- | |- | ||
| NOTICE | | NOTICE |
Revision as of 09:01, 4 February 2008
The Syslog, or System Log service, is a background process that receives events from other running services and, based on a simple set of 'rules', will write the events to a specified location, typically a file on the local drive. It is used on almost all UNIX and Unix-like platforms. The Microsoft equivalent on the Windows platform would be the Event Viewer.
The Syslog service is installed as a core component of FreeBSD and is operational by default. It runs as a listening service on the local host and typically writes to a log file on the local drive.
The default configuration notes events from the security, authentication, ftp, mail and other key service depending on the 'level' of importance. These levels range between simple informative messages to critical ones, with various degrees of importance between (see below for the levels).
Contents |
Operation
The Syslog uses a configuration file to act as a rule set by which it determines the service and level of events to log and where to log them to. A default installation from FreeBSD will log anything informative (or higher) from the mail service to a log file stored in /var/log/maillog, and log any notices (or higher) from the authentication service to the primary console window.
The 'or higher' used above is a feature of Syslog where a specified level is the lowest level of detrail required and anything higher will also be logged. The levels are noted below. As an example noting 'informative' from the mail service will log all events since it is the lowest level, however noting 'notice' from the authentication service will not log 'informative' events below it.
Levels
The following levels are available within Syslog.
Level | Name | Description |
---|---|---|
EMERG | Emergency | Total failure. |
ALERT | Alert | System corruption of a database, for example. |
CRIT | Critical | Typically used for hardware errors, for example. |
ERR | Errors | - |
WARNING | Warnings | - |
NOTICE | Notice | Possible action required but not essential. |
INFO | Informative | No action required. |
DEBUG | Debugging | Generally not used except for capturing everything for fault-finding. |