Logbookd

From Alpine Linux
Revision as of 11:07, 24 February 2024 by WhyNotHugo (talk | contribs) (Initial write-up: short intro, setup instructions, short hint on old logs.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

logbookd is a syslogd implementation that uses an sqlite database as a backend.

The default mode of operation uses a reduced write mode, where lots are written to memory and only flushed to disk when the service is interrupted or receives SIGUSR1.

Setup

Logbook is provided via the logbookd package.

Setting it up is quite straightforward:

apk add logbookd

  1. Disable and stop the default syslog.

rc-update del syslog boot service syslog stop

  1. Enable and start logbookd

rc-update add logbookd boot service logbookd start

After the next reboot, you may want to review previous log files in /var/log, which will remain unused and stale. Only the sqlite database should remain relevant.