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

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");
blogic's avatar
blogic committed
14
15
16
17
18
19
};

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

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

blogic's avatar
blogic committed
24
destination messages {
25
	file("/var/log/messages" suppress(5) template("${ISODATE} ${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/";