My AC86U router produces endless kernel dcd errors due to AiProtection features which pretty much pollute the system log and make it impossible to look at in a fairly efficient manner. See such a dcd error message below - it's huge for each error instance. So I put together a new quick & dirty Scribe filter in /opt/etc/syslog-ng.d/ called bcm_err. It tries to grab bits & pieces of the dcd error output, and trash it. Since Asus is not going to fix the issue - there is no point in looking at these messages. I also added branches to trash a few other types of annoying kernel messages.
Ideally, it'd be nice to have a log bucket in Scribe to send any filtered stuff there that does not fit any pre-existing categories that have their own log files, and I did not want to pollute the existing ones.
bcm_err filter
Endless dcd error output
Ideally, it'd be nice to have a log bucket in Scribe to send any filtered stuff there that does not fit any pre-existing categories that have their own log files, and I did not want to pollute the existing ones.
bcm_err filter
Code:
# don't copy error messages from kernel
filter f_bcm_err {
( program("kernel") and
message("0000") ) or
( program("kernel") and
message("^x") ) or
( program("kernel") and
message("is at") ) or
( program("kernel") and
message("pgd") ) or
( program("kernel") and
message("Hardware") ) or
( program("kernel") and
message("potentially") ) or
( program("kernel") and
message("Tainted") ) or
( program("kernel") and
message("^dig") ) or
( program("kernel") and
message("send_redir_page") ) or
( program("kernel") and
message("task") );
};
log {
source(src);
filter(f_bcm_err);
flags(final);
};
#eof
Endless dcd error output
Code:
Sep 22 00:44:35 RT-AC86U-9988 kernel: dcd[4644]: unhandled level 3 translation fault (11) at 0x00000000, esr 0x92000007
Sep 22 00:44:35 RT-AC86U-9988 kernel: pgd = ffffffc0014d7000
Sep 22 00:44:35 RT-AC86U-9988 kernel: [00000000] *pgd=0000000001646003, *pud=0000000001646003, *pmd=0000000006683003, *pte=0000000000000000
Sep 22 00:44:35 RT-AC86U-9988 kernel: CPU: 1 PID: 4644 Comm: dcd Tainted: P O 4.1.27 #2
Sep 22 00:44:35 RT-AC86U-9988 kernel: Hardware name: Broadcom-v8A (DT)
Sep 22 00:44:35 RT-AC86U-9988 kernel: task: ffffffc012047580 ti: ffffffc001f90000 task.ti: ffffffc001f90000
Sep 22 00:44:35 RT-AC86U-9988 kernel: PC is at 0xf6ff0f44
Sep 22 00:44:35 RT-AC86U-9988 kernel: LR is at 0x1dce0
Sep 22 00:44:35 RT-AC86U-9988 kernel: pc : [<00000000f6ff0f44>] lr : [<000000000001dce0>] pstate: 600b0010
Sep 22 00:44:35 RT-AC86U-9988 kernel: sp : 00000000ffcbd858
Sep 22 00:44:35 RT-AC86U-9988 kernel: x12: 00000000000a2050
Sep 22 00:44:35 RT-AC86U-9988 kernel: x11: 00000000f62ff024 x10: 00000000000a23c4
Sep 22 00:44:35 RT-AC86U-9988 kernel: x9 : 00000000f62ff734 x8 : 00000000000a287c
Sep 22 00:44:35 RT-AC86U-9988 kernel: x7 : 00000000f62ff76c x6 : 00000000000a2876
Sep 22 00:44:35 RT-AC86U-9988 kernel: x5 : 0000000000000000 x4 : 00000000f62ff718
Sep 22 00:44:35 RT-AC86U-9988 kernel: x3 : 0000000000000000 x2 : 00000000ffcbd834
Sep 22 00:44:35 RT-AC86U-9988 kernel: x1 : 000000000007d72e x0 : 0000000000000000
Sep 22 00:44:35 RT-AC86U-9988 kernel: potentially unexpected fatal signal 11.
Sep 22 00:44:35 RT-AC86U-9988 kernel: CPU: 1 PID: 4644 Comm: dcd Tainted: P O 4.1.27 #2
Sep 22 00:44:35 RT-AC86U-9988 kernel: Hardware name: Broadcom-v8A (DT)
Sep 22 00:44:35 RT-AC86U-9988 kernel: task: ffffffc012047580 ti: ffffffc001f90000 task.ti: ffffffc001f90000
Sep 22 00:44:35 RT-AC86U-9988 kernel: PC is at 0xf6ff0f44
Sep 22 00:44:35 RT-AC86U-9988 kernel: LR is at 0x1dce0
Sep 22 00:44:35 RT-AC86U-9988 kernel: pc : [<00000000f6ff0f44>] lr : [<000000000001dce0>] pstate: 600b0010
Sep 22 00:44:35 RT-AC86U-9988 kernel: sp : 00000000ffcbd858
Sep 22 00:44:35 RT-AC86U-9988 kernel: x12: 00000000000a2050
Sep 22 00:44:35 RT-AC86U-9988 kernel: x11: 00000000f62ff024 x10: 00000000000a23c4
Sep 22 00:44:35 RT-AC86U-9988 kernel: x9 : 00000000f62ff734 x8 : 00000000000a287c
Sep 22 00:44:35 RT-AC86U-9988 kernel: x7 : 00000000f62ff76c x6 : 00000000000a2876
Sep 22 00:44:35 RT-AC86U-9988 kernel: x5 : 0000000000000000 x4 : 00000000f62ff718
Sep 22 00:44:35 RT-AC86U-9988 kernel: x3 : 0000000000000000 x2 : 00000000ffcbd834
Sep 22 00:44:35 RT-AC86U-9988 kernel: x1 : 000000000007d72e x0 : 0000000000000000