~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/freebsd-packaging/syslog-ng.conf.example

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-03-14 12:57:49 UTC
  • mfrom: (1.3.1 upstream) (12.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100314125749-m3ats648sp2urg0f
Tags: 3.0.5-1
New upstream release, new maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# defauld syslogd config converted from freebsd 6.1
 
2
 
 
3
options { dir_perm(0755); perm(0644); 
 
4
          chain_hostnames(no);
 
5
          keep_hostname(yes); 
 
6
          };
 
7
 
 
8
# Default local source.
 
9
source local {
 
10
        unix-dgram("/var/run/log");
 
11
        unix-dgram("/var/run/logpriv" perm(0600));
 
12
        file("/dev/klog");
 
13
        udp(ip(0.0.0.0) port(514));
 
14
        internal();
 
15
};
 
16
 
 
17
# FILTERS: START
 
18
# Filter LEGO bricks to build your castle :)
 
19
# syslog level filters
 
20
filter f_crit_emerg { level(crit..emerg); };
 
21
filter f_err_emerg { level(err..emerg); };
 
22
filter f_warn_emerg { level(warning..emerg); };
 
23
filter f_debug_emerg { level(debug..emerg); };
 
24
filter f_notice_emerg { level(notice..emerg); };
 
25
filter f_info_emerg { level(info..emerg); };
 
26
filter f_info { level(info); };
 
27
filter f_not_authpriv { not facility(authpriv); };
 
28
filter f_debug { level(debug); };
 
29
filter f_emerg { level(emerg); };
 
30
 
 
31
# Facility filters
 
32
filter f_mail { facility(mail); };
 
33
filter f_kern { facility(kern); };
 
34
filter f_auth { facility(auth); };
 
35
filter f_lpr { facility(lpr); };
 
36
filter f_news { facility(news); };
 
37
filter f_kern { facility(kern); };
 
38
filter f_security { facility(security); };
 
39
filter f_auth{ facility(auth); };
 
40
filter f_authpriv { facility(authpriv); };
 
41
filter f_ftp { facility(ftp); };
 
42
filter f_cron { facility(cron); };
 
43
 
 
44
# program filters
 
45
filter f_startslip { program("startslip"); };
 
46
filter f_ppp { program("ppp"); };
 
47
## FILTERS: END
 
48
 
 
49
# DESTINATIONS: START
 
50
destination d_devconsole { file("/dev/console" create_dirs(yes)); };
 
51
destination d_messages { file("/var/log/messages" create_dirs(yes)); };
 
52
destination d_maillog { file("/var/log/maillog" create_dirs(yes)); };
 
53
destination d_security { file("/var/log/security" create_dirs(yes)); };
 
54
destination d_authlog { file("/var/log/auth.log" create_dirs(yes)); };
 
55
destination d_ldperr { file("/var/log/lpd-errs" create_dirs(yes)); };
 
56
destination d_xferlog { file("/var/log/xferlog" create_dirs(yes)); };
 
57
destination d_cron { file("/var/log/cron" create_dirs(yes)); };
 
58
destination d_debuglog { file("/var/log/debug.log" create_dirs(yes)); };
 
59
destination d_usertty { usertty("*"); };
 
60
destination d_slip { file("/var/log/slip.log" create_dirs(yes)); };
 
61
destination d_ppp { file("/var/log/ppp.log" create_dirs(yes)); };
 
62
# DESTINATIONS: END
 
63
 
 
64
# LOGS: START
 
65
# *.err;kern.warning;auth.notice;mail.crit              /dev/console
 
66
log { source(local); filter(f_mail); filter(f_crit_emerg); destination(d_devconsole); };
 
67
log { source(local); filter(f_err_emerg); destination(d_devconsole); };
 
68
log { source(local); filter(f_kern); filter(f_warn_emerg); destination(d_devconsole); };
 
69
log { source(local); filter(f_auth); filter(f_notice_emerg); destination(d_devconsole); };
 
70
 
 
71
# *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
 
72
log { source(local); filter(f_notice_emerg); filter(f_not_authpriv); destination(d_messages); };
 
73
log { source(local); filter(f_lpr); filter(f_info); destination(d_messages); };
 
74
log { source(local); filter(f_mail); filter(f_crit_emerg); destination(d_messages); };
 
75
log { source(local); filter(f_news); filter(f_err_emerg); destination(d_messages); };
 
76
log { source(local); filter(f_kern); filter(f_debug_emerg); destination(d_messages); };
 
77
 
 
78
# mail.info                                     /var/log/maillog
 
79
log { source(local); filter(f_mail); filter(f_info_emerg); destination(d_maillog); };
 
80
 
 
81
## security.*                                   /var/log/security
 
82
log { source(local); filter(f_security); filter(f_debug_emerg); destination(d_security); };
 
83
 
 
84
# auth.info;authpriv.info                               /var/log/auth.log
 
85
log { source(local); filter(f_auth); filter(f_info_emerg); destination(d_authlog); };
 
86
log { source(local); filter(f_authpriv); filter(f_info_emerg); destination(d_authlog); };
 
87
 
 
88
# lpr.info                                      /var/log/lpd-errs
 
89
log { source(local); filter(f_lpr); filter(f_info); destination(d_ldperr); };
 
90
 
 
91
# ftp.info                                      /var/log/xferlog
 
92
log { source(local); filter(f_ftp); filter(f_info_emerg); destination(d_xferlog); };
 
93
    
 
94
# cron.*                                                /var/log/cron
 
95
log { source(local); filter(f_cron); filter(f_debug_emerg); destination(d_cron); };
 
96
 
 
97
## *.=debug                                     /var/log/debug.log
 
98
log { source(local); filter(f_debug); destination(d_debuglog); };
 
99
    
 
100
## *.emerg                                              *
 
101
log { source(local); filter(f_emerg); destination(d_usertty); };
 
102
 
 
103
# !starslip  
 
104
# *.*                                           /var/log/slip.log
 
105
log { source(local); filter(f_startslip); destination(d_slip); };
 
106
 
 
107
# !ppp  
 
108
# *.*                                           /var/log/ppp.log
 
109
log { source(local); filter(f_ppp); destination(d_ppp); };
 
110
# LOGS: END