]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.conf
1acd5e749809c6e9d179d85b50728ebf06c5a8f1
[packages/syslog-ng.git] / syslog-ng.conf
1 #
2 # Syslog-ng configuration for PLD Linux
3 #
4 # See syslog-ng(8) and syslog-ng.conf(5) for more information.
5 #
6
7 options {
8         long_hostnames(off);
9         sync(0);
10         owner(root);
11         group(logs);
12         perm(0640);
13 };
14
15 source s_sys    {
16         { pipe ("/proc/kmsg" log_prefix("kernel: ")); };
17         unix-stream("/dev/log");
18         internal();
19         max_connections(1024);
20 };
21
22 # uncomment the line below if you want to setup syslog server
23 #source s_net   { udp(); };
24
25 #destination loghost    { udp("loghost" port(514)); };
26
27 destination kern        { file("/var/log/kernel"); };
28 destination messages    { file("/var/log/messages"); };
29 destination authlog     { file("/var/log/secure"); };
30 destination mail        { file("/var/log/maillog"); };
31 destination uucp        { file("/var/log/spooler"); };
32 destination debug       { file("/var/log/debug"); };
33 destination cron        { file("/var/log/cron" owner(root) group(crontab) perm(0660)); };
34 destination syslog      { file("/var/log/syslog"); };
35 destination daemon      { file("/var/log/daemon"); };
36 destination lpr         { file("/var/log/lpr"); };
37 destination user        { file("/var/log/user"); };
38 destination ppp         { file("/var/log/ppp"); };
39 destination ftp         { file("/var/log/xferlog"); };
40 destination audit       { file("/var/log/audit"); };
41 destination postgres    { file("/var/log/pgsql"); };
42 destination freshclam   { file("/var/log/freshclam.log"); };
43
44 # Log iptables messages to separate file
45 destination iptables    { file("/var/log/iptables"); };
46
47 destination console     { usertty("root"); };
48 #destination console_all        { file("/dev/tty12"); };
49
50 destination xconsole    { pipe("/dev/xconsole"); };
51
52 destination newscrit    { file("/var/log/news/news.crit" owner(news) group(news)); };
53 destination newserr     { file("/var/log/news/news.err" owner(news) group(news)); };
54 destination newsnotice  { file("/var/log/news/news.notice" owner(news) group(news)); };
55
56 # Filters for standard syslog(3) facilities
57 filter f_audit          { facility(audit); };
58 filter f_authpriv       { facility(authpriv, auth); };
59 filter f_cron           { facility(cron); };
60 filter f_daemon         { facility(daemon); };
61 filter f_ftp            { facility(ftp); };
62 filter f_kern           { facility(kern); };
63 filter f_lpr            { facility(lpr); };
64 filter f_mail           { facility(mail); };
65 filter f_news           { facility(news); };
66 filter f_syslog         { facility(syslog); };
67 filter f_user           { facility(user); };
68 filter f_uucp           { facility(uucp); };
69 filter f_local0         { facility(local0); };
70 filter f_local1         { facility(local1); };
71 filter f_local2         { facility(local2); };
72 filter f_local3         { facility(local3); };
73 filter f_local4         { facility(local4); };
74 filter f_local5         { facility(local5); };
75 filter f_local6         { facility(local6); };
76 filter f_local7         { facility(local7); };
77
78 # Filters for standard syslog(3) priorities
79 filter p_debug          { level(debug); };
80 filter p_info           { level(info); };
81 filter p_notice         { level(notice); };
82 filter p_warn           { level(warn); };
83 filter p_err            { level(err); };
84 filter p_alert          { level(alert); };
85 filter p_crit           { level(crit); };
86 filter p_emergency      { level(emerg); };
87
88 # Additional filters for specific programs/use
89 filter f_freshclam      { program(freshclam); };
90 filter f_ppp            { program(pppd) or program(chat); };
91 filter f_postgres       { program(postgres); };
92 filter f_iptables       { match("IN=[A-Za-z0-9]* OUT=[A-Za-z0-9]*"); };
93
94 log { source(s_sys); filter(f_auth);    destination(authlog); };
95 log { source(s_sys); filter(f_cron);    destination(cron); };
96 log { source(s_sys); filter(f_daemon);  destination(daemon); };
97 log { source(s_sys); filter(f_ftp);     destination(ftp); };
98 log { source(s_sys); filter(f_kern);    destination(kern); };
99 log { source(s_sys); filter(f_lpr);     destination(lpr); };
100 log { source(s_sys); filter(f_mail);                    destination(mail); };
101 log { source(s_sys); filter(f_news); filter(p_crit);    destination(uucp); };
102 log { source(s_sys); filter(f_news); filter(p_crit);    destination(newscrit); };
103 log { source(s_sys); filter(f_news); filter(p_err);     destination(newserr); };
104 log { source(s_sys); filter(f_news); filter(p_warn);    destination(newsnotice); };
105 log { source(s_sys); filter(f_news); filter(p_notice);  destination(newsnotice); };
106 log { source(s_sys); filter(f_news); filter(p_info);    destination(newsnotice); };
107 log { source(s_sys); filter(f_news); filter(p_debug);   destination(newsnotice); };
108 log { source(s_sys); filter(f_syslog);  destination(syslog); };
109 log { source(s_sys); filter(f_user);    destination(user); };
110 log { source(s_sys); filter(f_uucp);    destination(uucp); };
111
112 log { source(s_sys); filter(p_debug);   destination(debug); };
113
114 log { source(s_sys); filter(f_daemon); filter(f_ppp);           destination(ppp); };
115 log { source(s_sys); filter(f_local6); filter(f_freshclam);     destination(freshclam); };
116 log { source(s_sys); filter(f_local0); filter(f_postgres);      destination(postgres); };
117 #log { source(s_sys); filter(f_iptables);       destination(iptables); };
118
119 log { source(s_sys); filter(p_emergency);       destination(console); };
120 #log { source(s_sys); destination(console_all); };
121
122 #  This is a catchall statement, and should catch all messages which were not
123 #  accepted any of the previous statements.  
124 log { source(s_sys); filter(DEFAULT); destination(messages); };
125
126 # Network syslogging 
127 #log { source(s_sys); destination(loghost); };
This page took 0.051066 seconds and 3 git commands to generate.