syslog-ng.conf 715 Bytes
Newer Older
1
@version:3.10
blogic's avatar
blogic committed
2
3
4
5
6
7

options {
	chain_hostnames(no);
	flush_lines(0);
	stats_freq(0);
	flush_lines(0);
8
	log_msg_size(65536);
blogic's avatar
blogic committed
9
10
11
12
};

source src {
	internal();
13
	unix-stream("/dev/log" flags("expect-hostname"));
blogic's avatar
blogic committed
14
15
16
17
18
19
};

source kernel {
        file("/proc/kmsg" program_override("kernel"));
};

20
filter f_turris_iptables {
21
	not match(".*turris[^:]*: .*" value(MESSAGE) type("posix")) or not level(debug);
22
23
};

blogic's avatar
blogic committed
24
destination messages {
25
	file("/var/log/messages" suppress(5) template("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC} ${PRIORITY} ${PROGRAM}[${PID}]: ${MSGONLY}\n") log_fifo_size(256));
blogic's avatar
blogic committed
26
27
28
29
};

log {
	source(src);
30
31
	source(kernel);
	filter(f_turris_iptables);
blogic's avatar
blogic committed
32
33
	destination(messages);
};
34

Štěpán Henek's avatar
Štěpán Henek committed
35
include "/etc/syslog-ng.d/";