Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 @version:4.4
- 2 @include "scl.conf"
- 3
- 4 #
- 5 # This sample configuration file is essentially equilivent to the stock
- 6 # FreeBSD /etc/syslog.conf file.
- 7 #
- 8
- 9 #
- 10 # options
- 11 #
- 12 options { chain_hostnames(off); flush_lines(0); threaded(yes); };
- 13
- 14 #
- 15 # sources
- 16 #
- 17 source src { system();
- 18 udp(); internal(); };
- 19
- 20 #
- 21 # destinations
- 22 #
- 23 destination messages { file("/var/log/messages"); };
- 24 destination security { file("/var/log/security"); };
- 25 destination authlog { file("/var/log/auth.log"); };
- 26 destination maillog { file("/var/log/maillog"); };
- 27 destination lpd-errs { file("/var/log/lpd-errs"); };
- 28 destination xferlog { file("/var/log/xferlog"); };
- 29 destination cron { file("/var/log/cron"); };
- 30 destination debuglog { file("/var/log/debug.log"); };
- 31 destination consolelog { file("/var/log/console.log"); };
- 32 destination all { file("/var/log/all.log"); };
- 33 destination newscrit { file("/var/log/news/news.crit"); };
- 34 destination newserr { file("/var/log/news/news.err"); };
- 35 destination newsnotice { file("/var/log/news/news.notice"); };
- 36 destination slip { file("/var/log/slip.log"); };
- 37 destination ppp { file("/var/log/ppp.log"); };
- 38 destination console { file("/dev/console"); };
- 39 destination allusers { usertty("*"); };
- 40
- 41
- 42 #
- 43 # log facility filters
- 44 #
- 45 filter f_auth { facility(auth); };
- 46 filter f_authpriv { facility(authpriv); };
- 47 filter f_not_authpriv { not facility(authpriv); };
- 48 #filter f_console { facility(console); };
- 49 filter f_cron { facility(cron); };
- 50 filter f_daemon { facility(daemon); };
- 51 filter f_ftp { facility(ftp); };
- 52 filter f_kern { facility(kern); };
- 53 filter f_lpr { facility(lpr); };
- 54 filter f_mail { facility(mail); };
- 55 filter f_news { facility(news); };
- 56 filter f_security { facility(security); };
- 57 filter f_user { facility(user); };
- 58 filter f_uucp { facility(uucp); };
- 59 filter f_local0 { facility(local0); };
- 60 filter f_local1 { facility(local1); };
- 61 filter f_local2 { facility(local2); };
- 62 filter f_local3 { facility(local3); };
- 63 filter f_local4 { facility(local4); };
- 64 filter f_local5 { facility(local5); };
- 65 filter f_local6 { facility(local6); };
- 66 filter f_local7 { facility(local7); };
- 67
- 68 #
- 69 # log level filters
- 70 #
- 71 filter f_emerg { level(emerg); };
- 72 filter f_alert { level(alert..emerg); };
- 73 filter f_crit { level(crit..emerg); };
- 74 filter f_err { level(err..emerg); };
- 75 filter f_warning { level(warning..emerg); };
- 76 filter f_notice { level(notice..emerg); };
- 77 filter f_info { level(info..emerg); };
- 78 filter f_debug { level(debug..emerg); };
- 79 filter f_is_debug { level(debug); };
- 79 filter f_is_debug { level(debug); };
- 80
- 81 #
- 82 # program filters
- 83 #
- 84 filter f_ppp { program("ppp"); };
- 85 filter f_slip { program("startslip"); };
- 86
- 87 #
- 88 # *.err;kern.warning;auth.notice;mail.crit /dev/console
- 89 #
- 90 log { source(src); filter(f_err); destination(console); };
- 91 log { source(src); filter(f_kern); filter(f_warning); destination(console); };
- 92 log { source(src); filter(f_auth); filter(f_notice); destination(console); };
- 93 log { source(src); filter(f_mail); filter(f_crit); destination(console); };
- 94
- 95 #
- 96 # *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
- 97 #
- 98 log { source(src); filter(f_notice); filter(f_not_authpriv); destination(messages); };
- 99 log { source(src); filter(f_kern); filter(f_debug); destination(messages); };
- 100 log { source(src); filter(f_lpr); filter(f_info); destination(messages); };
- 101 log { source(src); filter(f_mail); filter(f_crit); destination(messages); };
- 102 log { source(src); filter(f_news); filter(f_err); destination(messages); };
- 103
- 104 #
- 105 # security.* /var/log/security
- 106 #
- 107 log { source(src); filter(f_security); destination(security); };
- 108
- 109 #
- 110 # auth.info;authpriv.info /var/log/auth.log
- 111 log { source(src); filter(f_auth); filter(f_info); destination(authlog); };
- 112 log { source(src); filter(f_authpriv); filter(f_info); destination(authlog); };
- 113
- 114 #
- 115 # mail.info /var/log/maillog
- 116 #
- 117 log { source(src); filter(f_mail); filter(f_info); destination(maillog); };
- 118
- 119 #
- 119 #
- 120 # lpr.info /var/log/lpd-errs
- 121 #
- 122 log { source(src); filter(f_lpr); filter(f_info); destination(lpd-errs); };
- 123
- 124 #
- 125 # ftp.info /var/log/xferlog
- 126 #
- 127 log { source(src); filter(f_ftp); filter(f_info); destination(xferlog); };
- 128
- 129 #
- 130 # cron.* /var/log/cron
- 131 #
- 132 log { source(src); filter(f_cron); destination(cron); };
- 133
- 134 #
- 135 # *.=debug /var/log/debug.log
- 136 #
- 137 log { source(src); filter(f_is_debug); destination(debuglog); };
- 138
- 139 #
- 140 # *.emerg *
- 141 #
- 142 log { source(src); filter(f_emerg); destination(allusers); };
- 143
- 144 #
- 145 # uncomment this to log all writes to /dev/console to /var/log/console.log
- 146 # console.info /var/log/console.log
- 147 #
- 148 #log { source(src); filter(f_console); filter(f_info); destination(consolelog); };
- 149
- 150 #
- 151 # uncomment this to enable logging of all log messages to /var/log/all.log
- 152 # touch /var/log/all.log and chmod it to mode 600 before it will work
- 153 # *.* /var/log/all.log
- 154 #
- 155 log { source(src); destination(all); };
- 156
- 157 #
- 158 # uncomment this to enable logging to a remote loghost named loghost
- 159 # *.* @loghost
- 160 #
- 161 #log { source(src); destination(loghost); };
- 162 destination lc_net { tcp("172.30.250.70" port(3100) log_fifo_size(1000)); };
- 163
- 164 # All messages send to a remote site
- 165 #
- 166 log { source(src); destination(lc_net); };
- 167
- 168 #
- 169 # uncomment these if you're running inn
- 170 # news.crit /var/log/news/news.crit
- 171 # news.err /var/log/news/news.err
- 172 # news.notice /var/log/news/news.notice
- 173 #
- 174 #log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
- 175 #log { source(src); filter(f_news); filter(f_err); destination(newserr); };
- 176 #log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
- 177
- 178 #
- 179 # !startslip
- 180 # *.* /var/log/slip.log
- 181 #
- 182 log { source(src); filter(f_slip); destination(slip); };
- 183
- 184 #
- 185 # !ppp
- 186 # *.* /var/log/ppp.log
- 187 #
- 188 log { source(src); filter(f_ppp); destination(ppp); };
Advertisement
Add Comment
Please, Sign In to add comment