syslog

The standard way that programs on Unix-like systems send log messages, and the service that collects, stores and forwards them.

In more detail

Each message carries a timestamp, the host, the program name, a facility such as auth or daemon, and one of eight severities from Emergency down to Debug. Traditional syslog timestamps have no year, so tools must supply one when parsing. Forwarding syslog to a central server that attackers cannot edit keeps evidence safe even if one machine is compromised.

Examples

# syslog lines carry no year, so supply one
stamp = datetime.strptime("2026 " + m[1], "%Y %b %d %H:%M:%S")
A syslog message starts with a priority number in angle brackets, such as <38>, followed by a timestamp, host, program and message.

Related terms

Taught in

References

Certification courses