author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 22 Feb 2016 10:26:36 -0800 | |
changeset 5480 | c8882ac2a393 |
parent 5463 | 245bdc05448a |
child 6223 | ea7e5ef68d0d |
permissions | -rw-r--r-- |
847 | 1 |
# if you experience problems, check |
2 |
# http://www.rsyslog.com/doc/troubleshoot.html for assistance |
|
3 |
||
4 |
# rsyslog v3: load input modules |
|
5 |
# If you do not load inputs, nothing happens! |
|
6 |
||
7 |
#$ModLoad immark # provides --MARK-- message capability |
|
8 |
#$ModLoad imuxsock # can be used for rate-limiting and flow-control |
|
9 |
$ModLoad imsolaris # for Solaris kernel logging |
|
10 |
||
4918
f8b5f8d82eec
PSARC/2015/417 /etc/rsyslog.d
Drew Fisher <drew.fisher@oracle.com>
parents:
847
diff
changeset
|
11 |
# Read drop-in files from /etc/rsyslog.d |
f8b5f8d82eec
PSARC/2015/417 /etc/rsyslog.d
Drew Fisher <drew.fisher@oracle.com>
parents:
847
diff
changeset
|
12 |
$IncludeConfig /etc/rsyslog.d/ |
847 | 13 |
|
14 |
# High priority messages to the console |
|
5480
c8882ac2a393
backout 21843287/22139939/22662899/22619520/16694027 - needs more work.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5463
diff
changeset
|
15 |
*.err;kern.notice;auth.notice /dev/sysmsg |
847 | 16 |
# Next highest priority to the messages file |
17 |
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages |
|
18 |
||
19 |
# Preserve traditional Solaris syslog defaults |
|
20 |
*.alert;kern.err;daemon.err :omusrmsg:operator |
|
21 |
*.alert :omusrmsg:root |
|
22 |
||
23 |
# Log anything (except auth, cron, daemon & mail) of level info or higher. |
|
24 |
*.info;mail.none;auth.none;cron.none -/var/log/misc.log |
|
25 |
||
5480
c8882ac2a393
backout 21843287/22139939/22662899/22619520/16694027 - needs more work.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5463
diff
changeset
|
26 |
# Log all the auth, daemon & mail messages in one place. |
847 | 27 |
auth.* -/var/log/auth.log |
28 |
daemon.* -/var/log/daemon.log |
|
29 |
mail.* -/var/log/mail.log |
|
30 |
||
31 |
# Everybody gets emergency messages |
|
32 |
*.emerg :omusrmsg:* |
|
33 |
||
34 |
# Remote Logging (we use TCP for reliable delivery) |
|
35 |
# An on-disk queue is created for this action. If the remote host is |
|
36 |
# down, messages are spooled to disk and sent when it is up again. |
|
37 |
#$WorkDirectory /var/spool/rsyslog # where to place spool files |
|
38 |
#$ActionQueueFileName uniqName # unique name prefix for spool files |
|
39 |
#$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible) |
|
40 |
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown |
|
41 |
#$ActionQueueType LinkedList # run asynchronously |
|
42 |
#$ActionResumeRetryCount -1 # infinite retries if host is down |
|
43 |
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional |
|
44 |
#*.* @@remote-host:514 |
|
45 |
||
46 |
||
47 |
# ######### Receiving Messages from Remote Hosts ########## |
|
48 |
# TCP Syslog Server: |
|
49 |
# provides TCP syslog reception and GSS-API |
|
50 |
#$ModLoad imtcp.so # load module |
|
51 |
#$InputTCPServerRun 514 # start up TCP listener at port 514 |
|
52 |
||
53 |
# UDP Syslog Server: |
|
54 |
#$ModLoad imudp.so # provides UDP syslog reception |
|
55 |
#$UDPServerAddress * # listen to all IP addresses |
|
56 |
#$UDPServerRun 514 # start a UDP syslog server at standard port 514 |