Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | OPTIONS="-C" |
| 2 | # The above option means syslogd will log to 16K shm circular buffer. |
| 3 | # You could use `logread' to read it. |
| 4 | |
| 5 | # All available options are: |
| 6 | # -O FILE : Log to FILE (default:/var/log/messages) |
| 7 | # -l N : Log only messages more urgent than prio N (1-8) |
| 8 | # -S : Smaller output |
| 9 | # -s SIZE : Max size (KB) before rotation (default:200KB, 0=off) |
| 10 | # -b N : N rotated logs to keep (default:1, max=99, 0=purge) |
| 11 | # -R HOST[:PORT]: Log to HOST:PORT (default PORT:514) |
| 12 | # -L : Log locally and via network |
| 13 | # -D : Drop duplicates |
| 14 | # -C[size_kb] : Log to shared mem buffer (use logread to read it) |
| 15 | # -f FILE : Use FILE as config (default:/etc/syslog.conf) |
| 16 | # -m MIN : Minutes between mark lines (default:20, 0=off) |
| 17 | # -K : Log to kernel printk buffer (use dmesg to read it) |
| 18 | |
| 19 | # Example 1: |
| 20 | # Log to local file /var/log/mylog |
| 21 | # OPTIONS="-O /var/log/mylog" |
| 22 | # |
| 23 | # Example 2: |
| 24 | # Log to remote host |
| 25 | # OPTIONS="-R 192.168.1.1:601" |