]> TLD Linux GIT Repositories - packages/syslog-ng.git/blob - syslog-ng-simple.conf
- log postgresql to separate directory with defined name as log filename
[packages/syslog-ng.git] / syslog-ng-simple.conf
1 @version: 3.18
2 #
3 # Syslog-ng configuration for TLD Linux
4 #
5 # See syslog-ng(8) and syslog-ng.conf(5) for more information.
6 #
7
8 options {
9         flush_lines(0);
10         owner(root);
11         group(logs);
12         perm(0640);
13         create_dirs(yes);
14         dir_owner(root);
15         dir_group(logs);
16         dir_perm(0750);
17         stats_freq(43200);
18         time_reopen(10);
19         time_reap(360);
20         mark_freq(600);
21         threaded(yes);
22 };
23
24 source s_sys    {
25         file ("/proc/kmsg" program_override("kernel"));
26
27         unix-stream("/dev/log" max-connections(1000) log_iw_size(100000));
28         internal();
29 };
30
31 destination d_mail        { file("/var/log/maillog"); };
32 destination d_messages    { file("/var/log/messages"); };
33 destination d_kern        { file("/var/log/kernel"); };
34 destination d_console_all { file("/dev/tty12"); };
35
36 # if using systemd, an IP address instead of name may be required here
37 #destination d_loghost  { udp("loghost" port(514)); };
38
39 filter f_kern             { facility(kern); };
40 filter f_mail             { facility(mail); };
41
42 log { source(s_sys); filter(f_kern); destination(d_kern); };
43 log { source(s_sys); filter(f_mail); destination(d_mail); };
44
45 # This is a catchall statement, and should catch all messages which were not
46 # accepted any of the previous statements.
47 # If using d_console_all or network logging, remove flags(fallback);
48 log { source(s_sys); destination(d_messages); flags(fallback); };
49 #log { source(s_sys); destination(d_messages); };
50
51 # Log all messages to tty12
52 #log { source(s_sys); destination(d_console_all); };
53
54 # Network syslogging
55 #log { source(s_sys); destination(d_loghost); };