CS 480 M01 Lecture Notes 11 - Sep 28, 2022

Last Time:

Ch 2. Booting and System Management Daemons Continued

10. Logging

Huge amount of data may get generated by kernel, system daemons, services and other tools - gets logged => will fill up disk(s) eventually ...
      ... or quickly - out of control process/logging can bring the system(s) down really fast ... => /var/log to its own partition
Limited useful life, different retention needs for different data
Need to be summarized, filtered, searched, analyzed, compressed and archived
Log message - usually a line of text per event with time stamp, type and severity of the event, process that generated it, ...
Admins need to extract critical / important / useful / ... info and act on it - log management
Check soon when debugging problems and errors

Common schemes Log Management
  1. Collect log from various sorces
  2. Provide structured interface to query, analyze, filter, and monitor messages
  3. Manage retention and expiration - keep as long as required (laws, policies) or potentially needed or useful
  4. syslog traditional UNIX mngmt system tackling #1 above
    Configuration differs widely among operating systems plus ...
    Many applications, daemons, startup scripts, ... bypass syslog
    => varies significantly among UNIX flavors and Linux distros
    systemd-journal - recent addition - second attempt to bring sanity to the logging madness Can stand alone or coexist (with varying integration degrees - configurable) with syslog

Log Files and Locations
5th Edition4th Edition

Next : Systemd journal