~ubuntu-branches/ubuntu/gutsy/syslog-ng/gutsy

« back to all changes in this revision

Viewing changes to contrib/fedora-packaging/syslog-ng.conf

  • Committer: Bazaar Package Importer
  • Author(s): SZALAY Attila
  • Date: 2005-06-09 20:10:54 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050609201054-gpuo1bz4xv33edld
Tags: 1.6.8-1
* New upstream version.
* Debian patch cleaned up. If something needed dropped out please tell me!
* Create /dev/xconsole if not exists. (Closes: #312690)
* Check the config file for syntax errors before reload. (Closes: #294888)
* Fixed a typo in syslog-ng.conf (Closes: #312114)
* Created a directory. Put debian specific patches into it.
* Added the new version of syslog-ng-annon patch. (Closes: #303808)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# syslog-ng configuration file.
 
2
#
 
3
# This should behave pretty much like the original syslog on RedHat. But
 
4
# it could be configured a lot smarter.
 
5
#
 
6
# See syslog-ng(8) and syslog-ng.conf(5) for more information.
 
7
#
 
8
# 20000925 gb@sysfive.com
 
9
#
 
10
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 10 Aug 2002
 
11
#       - for Red Hat 7.3
 
12
#       - totally do away with klogd
 
13
#       - add message "kernel:" as is done with klogd.
 
14
#
 
15
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002
 
16
#       - use the log_prefix option as per Balazs Scheidler's email
 
17
#
 
18
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 05 Apr 2003
 
19
#       - corrected filters 'f_filter2' and 'f_filter6'
 
20
#     these filters were only allowing messages of one specific
 
21
#     priority level; they should be allowing messages from that
 
22
#     priority and upper levels.
 
23
#
 
24
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 25 Jan 2005
 
25
#   - Don't sync the d_mail destination
 
26
#
 
27
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 01 Feb 2005
 
28
#   - /proc/kmsg is a file not a pipe.
 
29
#     (https://lists.balabit.hu/pipermail/syslog-ng/2005-February/006963.html)
 
30
#
 
31
 
 
32
options {
 
33
    sync (0);
 
34
    time_reopen (10);
 
35
    log_fifo_size (1000);
 
36
    long_hostnames (off);
 
37
    use_dns (no);
 
38
    use_fqdn (no);
 
39
    create_dirs (no);
 
40
    keep_hostname (yes);
 
41
};
 
42
 
 
43
source s_sys {
 
44
    file ("/proc/kmsg" log_prefix("kernel: "));
 
45
    unix-stream ("/dev/log");
 
46
    internal();
 
47
    # udp(ip(0.0.0.0) port(514));
 
48
};
 
49
 
 
50
destination d_cons { file("/dev/console"); };
 
51
destination d_mesg { file("/var/log/messages"); };
 
52
destination d_auth { file("/var/log/secure"); };
 
53
destination d_mail { file("/var/log/maillog" sync(10)); };
 
54
destination d_spol { file("/var/log/spooler"); };
 
55
destination d_boot { file("/var/log/boot.log"); };
 
56
destination d_cron { file("/var/log/cron"); };
 
57
destination d_mlal { usertty("*"); };
 
58
 
 
59
#filter f_filter1   { facility(kern); };
 
60
filter f_filter2   { level(info..emerg) and
 
61
                     not facility(mail,authpriv,cron); };
 
62
filter f_filter3   { facility(authpriv); };
 
63
filter f_filter4   { facility(mail); };
 
64
filter f_filter5   { level(emerg); };
 
65
filter f_filter6   { facility(uucp) or
 
66
                     (facility(news) and level(crit..emerg)); };
 
67
filter f_filter7   { facility(local7); };
 
68
filter f_filter8   { facility(cron); };
 
69
 
 
70
#log { source(s_sys); filter(f_filter1); destination(d_cons); };
 
71
log { source(s_sys); filter(f_filter2); destination(d_mesg); };
 
72
log { source(s_sys); filter(f_filter3); destination(d_auth); };
 
73
log { source(s_sys); filter(f_filter4); destination(d_mail); };
 
74
log { source(s_sys); filter(f_filter5); destination(d_mlal); };
 
75
log { source(s_sys); filter(f_filter6); destination(d_spol); };
 
76
log { source(s_sys); filter(f_filter7); destination(d_boot); };
 
77
log { source(s_sys); filter(f_filter8); destination(d_cron); };