Compare Pastes
Differences between the pastes
#272210 (04.02.2024 20:00)
and
#276566 (07.08.2024 16:37).
1 | @version: 4.2 | |
2 | # | |
3 | # Syslog-ng default configuration file for Gentoo Linux | |
4 | ||
5 | # https://bugs.gentoo.org/426814 | |
6 | @include "scl.conf" | |
7 | ||
8 | options { | |
9 | threaded(yes); | |
10 | chain_hostnames(no); | |
11 | ||
12 | # The default action of syslog-ng is to log a STATS line | |
13 | # to the file every 10 minutes. That's pretty ugly after a while. | |
14 | # Change it to every 12 hours so you get a nice daily update of | |
15 | # how many messages syslog-ng missed (0). | |
16 | stats(freq(43200)); | |
17 | # The default action of syslog-ng is to log a MARK line | |
18 | # to the file every 20 minutes. That's seems high for most | |
19 | # people so turn it down to once an hour. Set it to zero | |
20 | # if you don't want the functionality at all. | |
21 | mark_freq(3600); | |
22 | }; | |
23 | ||
24 | destination devnull { | |
25 | file(/dev/null); | |
26 | }; | |
27 | ||
28 | source src { system(); internal(); }; | |
29 | ||
30 | destination messages { file("/var/log/messages"); }; | |
31 | ||
32 | # By default messages are logged to tty12... | |
33 | destination console_all { file("/dev/tty12"); }; | |
34 | # ...if you intend to use /dev/console for programs like xconsole | |
35 | # you can comment out the destination line above that references /dev/tty12 | |
36 | # and uncomment the line below. | |
37 | #destination console_all { file("/dev/console"); }; | |
38 | ||
39 | filter dbus_daemon { program("^dbus$"); }; | |
40 | ||
41 | log { source(src); filter(dbus_daemon); destination(devnull); flags(final); }; | |
42 | log { source(src); destination(messages); }; |