eduardo:linux:syslog
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eduardo:linux:syslog [2010/07/29 05:01] – eduardo | eduardo:linux:syslog [2024/02/23 08:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Syslog ====== | ||
+ | * Syslog Facilities | ||
+ | |||
+ | ^ **Severity Level** | ||
+ | | 0 | emergencies | ||
+ | | 1 | alerts | ||
+ | | 2 | critical | ||
+ | | 3 | errors | ||
+ | | 4 | warnings | ||
+ | | 5 | notifications | ||
+ | | 6 | informational | ||
+ | | 7 | debugging | ||
+ | |||
+ | ===== Configuration (Ubuntu/ | ||
+ | * Modify config file / | ||
+ | |||
+ | ==== Remote Syslog ==== | ||
+ | * By default syslog doesn' | ||
+ | * Edit / | ||
+ | * Restart syslog server | ||
+ | < | ||
+ | # Options for start/ | ||
+ | # For remote UDP logging use SYSLOGD=" | ||
+ | # | ||
+ | # | ||
+ | SYSLOGD=" | ||
+ | </ | ||
+ | |||
+ | ==== Restart Syslog ==== | ||
+ | * Restart syslog server (Ubuntu/ | ||
+ | < | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | ===== Configuration (Redhat) ===== | ||
+ | * Modify config file / | ||
+ | |||
+ | ==== Remote Syslog ==== | ||
+ | * By default syslog doesn' | ||
+ | * On Redhat, Syslog will not listen for remote messages unless the SYSLOGD_OPTIONS variable in this file has a -r included in it as shown below. | ||
+ | * Restart syslog server | ||
+ | < | ||
+ | # Options to syslogd | ||
+ | # -m 0 disables ’MARK’ messages. | ||
+ | # -r enables logging from remote machines | ||
+ | # -x disables DNS lookups on messages received with -r | ||
+ | # See syslogd(8) for more details | ||
+ | |||
+ | SYSLOGD_OPTIONS=" | ||
+ | |||
+ | # Options to klogd | ||
+ | # -2 prints all kernel oops messages twice; once for klogd to decode, and | ||
+ | # once for processing with ’ksymoops’ | ||
+ | # -x disables all klogd processing of oops messages entirely | ||
+ | # See klogd(8) for more details | ||
+ | |||
+ | KLOGD_OPTIONS=" | ||
+ | </ | ||
+ | |||
+ | ==== Restart Syslog ==== | ||
+ | * Restart syslog server (Redhat) | ||
+ | < | ||
+ | service syslog restart | ||
+ | </ | ||