]> git.pld-linux.org Git - packages/syslog-ng.git/blame - syslog-ng-simple.conf
- added types patch (fix guint64 vs gsize confusion in secure-logging module); release 2
[packages/syslog-ng.git] / syslog-ng-simple.conf
CommitLineData
ef5e1805 1@version: 3.8
d12ef724
ER
2#
3# Syslog-ng configuration for PLD Linux
4#
40b11767 5# See syslog-ng(8) and syslog-ng.conf(5) for more information.
dac7373c 6#
d12ef724
ER
7
8options {
d12ef724 9 flush_lines(0);
40b11767
ER
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);
d12ef724 17 stats_freq(43200);
40b11767
ER
18 time_reopen(10);
19 time_reap(360);
20 mark_freq(600);
21 threaded(yes);
d12ef724
ER
22};
23
40b11767
ER
24source s_sys {
25 file ("/proc/kmsg" program_override("kernel"));
37181693 26
40b11767 27 unix-stream("/dev/log" max-connections(1000) log_iw_size(100000));
a66b0ee6 28# if using systemd, comment out the line above, and uncomment line below
40b11767 29# unix-dgram("/run/systemd/journal/syslog");
37181693
ER
30# NOTE: if you are running under systemd and fixed config then you may need to manually fix /dev/log symlink:
31# ln -s /run/systemd/journal/dev-log /dev/log
32#
40b11767
ER
33 internal();
34};
d12ef724 35
da63ea7f 36destination d_mail { file("/var/log/maillog"); };
d219d3bb 37destination d_messages { file("/var/log/messages"); };
40b11767 38destination d_kern { file("/var/log/kernel"); };
d219d3bb 39destination d_console_all { file("/dev/tty12"); };
da63ea7f 40
40b11767
ER
41# if using systemd, an IP address instead of name may be required here
42#destination d_loghost { udp("loghost" port(514)); };
43
ceb76f95 44filter f_kern { facility(kern); };
da63ea7f 45filter f_mail { facility(mail); };
d12ef724 46
40b11767
ER
47log { source(s_sys); filter(f_kern); destination(d_kern); };
48log { source(s_sys); filter(f_mail); destination(d_mail); };
49
50# This is a catchall statement, and should catch all messages which were not
51# accepted any of the previous statements.
52# If using d_console_all or network logging, remove flags(fallback);
53log { source(s_sys); destination(d_messages); flags(fallback); };
54#log { source(s_sys); destination(d_messages); };
55
56# Log all messages to tty12
57#log { source(s_sys); destination(d_console_all); };
58
59# Network syslogging
60#log { source(s_sys); destination(d_loghost); };
This page took 0.060157 seconds and 4 git commands to generate.