diff options
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf')
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf new file mode 100644 index 000000000..54f8bb6a5 --- /dev/null +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf | |||
@@ -0,0 +1,84 @@ | |||
1 | # if you experience problems, check | ||
2 | # http://www.rsyslog.com/troubleshoot for assistance | ||
3 | |||
4 | # rsyslog v3: load input modules | ||
5 | # If you do not load inputs, nothing happens! | ||
6 | # You may need to set the module load path if modules are not found. | ||
7 | # | ||
8 | # Ported from debian's sysklogd.conf | ||
9 | |||
10 | $ModLoad immark # provides --MARK-- message capability | ||
11 | $ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | ||
12 | $ModLoad imklog # kernel logging (formerly provided by rklogd) | ||
13 | |||
14 | # | ||
15 | # Set the default permissions | ||
16 | # | ||
17 | $FileCreateMode 0640 | ||
18 | $DirCreateMode 0755 | ||
19 | $Umask 0022 | ||
20 | |||
21 | auth,authpriv.* /var/log/auth.log | ||
22 | *.*;auth,authpriv.none -/var/log/syslog | ||
23 | cron.* /var/log/cron.log | ||
24 | daemon.* -/var/log/daemon.log | ||
25 | kern.* -/var/log/kern.log | ||
26 | lpr.* -/var/log/lpr.log | ||
27 | mail.* -/var/log/mail.log | ||
28 | user.* -/var/log/user.log | ||
29 | |||
30 | # | ||
31 | # Logging for the mail system. Split it up so that | ||
32 | # it is easy to write scripts to parse these files. | ||
33 | # | ||
34 | mail.info -/var/log/mail.info | ||
35 | mail.warn -/var/log/mail.warn | ||
36 | mail.err /var/log/mail.err | ||
37 | |||
38 | # Logging for INN news system | ||
39 | # | ||
40 | news.crit /var/log/news.crit | ||
41 | news.err /var/log/news.err | ||
42 | news.notice -/var/log/news.notice | ||
43 | |||
44 | # | ||
45 | # Some `catch-all' logfiles. | ||
46 | # | ||
47 | *.=debug;\ | ||
48 | auth,authpriv.none;\ | ||
49 | news.none;mail.none -/var/log/debug | ||
50 | *.=info;*.=notice;*.=warn;\ | ||
51 | auth,authpriv.none;\ | ||
52 | cron,daemon.none;\ | ||
53 | mail,news.none -/var/log/messages | ||
54 | |||
55 | # | ||
56 | # Emergencies are sent to everybody logged in. | ||
57 | # | ||
58 | *.emerg :omusrmsg:* | ||
59 | |||
60 | # Save boot messages also to boot.log | ||
61 | local7.* /var/log/boot.log | ||
62 | |||
63 | # Remote Logging (we use TCP for reliable delivery) | ||
64 | # An on-disk queue is created for this action. If the remote host is | ||
65 | # down, messages are spooled to disk and sent when it is up again. | ||
66 | #$WorkDirectory /var/spool/rsyslog # where to place spool files | ||
67 | #$ActionQueueFileName uniqName # unique name prefix for spool files | ||
68 | $ActionQueueMaxDiskSpace 10m # 1gb space limit (use as much as possible) | ||
69 | #$ActionQueueSaveOnShutdown on # save messages to disk on shutdown | ||
70 | #$ActionQueueType LinkedList # run asynchronously | ||
71 | #$ActionResumeRetryCount -1 # infinite retries if host is down | ||
72 | # remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional | ||
73 | #*.* @@remote-host:514 | ||
74 | |||
75 | |||
76 | # ######### Receiving Messages from Remote Hosts ########## | ||
77 | # TCP Syslog Server: | ||
78 | # provides TCP syslog reception and GSS-API (if compiled to support it) | ||
79 | #$ModLoad imtcp.so # load module | ||
80 | #$InputTCPServerRun 514 # start up TCP listener at port 514 | ||
81 | |||
82 | # UDP Syslog Server: | ||
83 | #$ModLoad imudp.so # provides UDP syslog reception | ||
84 | #$UDPServerRun 514 # start a UDP syslog server at standard port 514 | ||