Central Logging for Unix

Background | Log Distribution & Collection | Log Analysis

Background

My Experience | Logging Goals | Logging Requirements

My Experience

Logging Goals

Logging Requirements

Log Distribution & Collection

Problems with syslogd | Problems with Logfiles | Hope is on the way! | Advantages of syslog-ng | Disadvantages of syslog-ng | Buggy Client Logs

Problems with syslogd

http://sial.org/howto/logging/syslogd-problems/

Problems with Logfiles

We can do better! Because…

Hope is on the way!

Advantages of syslog-ng

http://sial.org/howto/logging/syslog-ng/

Disadvantages of syslog-ng

Buggy Client Logs

Log Analysis

Active Review | Custom Script: eet | Custom Script: ptail | Realtime Notification | Notification Tips | Periodic Reporting | Custom Script: unseen | Custom Script: redress

Active Review

Custom Script: eet

Custom Script: ptail

Cannot watch logs all the time…

Realtime Notification

/var/log/everything - rotated daily

Notification Tips

Periodic Reporting

Custom Script: unseen

#!/bin/sh

unseen -w 30d -T -s ~/share/unseen.logs /var/log/archive | \
while read logfile; do

swatch --config-file=everything.conf --examine=$logfile | \
mail -s "swatch check: file=`basename $logfile`" `id -un`

done

Custom Script: redress