[Logcheck-users] Suppressing this CD-ROM message?

Adam Funk
Wed, 20 May 2009 11:08:13 -0000

I'd like to suppress the following messages (routinely generated by my
CD drive) from logcheck output.

May 20 11:04:36 floo kernel: [162262.729339] end_request: I/O error, dev sr0,
sector 0
May 20 11:04:36 floo kernel: [162262.739338] end_request: I/O error, dev sr0,
sector 0
May 20 11:26:11 floo kernel: [163558.119548] end_request: I/O error, dev sr0,
sector 0
May 20 11:26:11 floo kernel: [163558.128832] end_request: I/O error, dev sr0,
sector 0
May 20 11:34:34 floo kernel: [164060.734851] end_request: I/O error, dev sr0,
sector 0
May 20 11:34:34 floo kernel: [164060.744896] end_request: I/O error, dev sr0,
sector 0


This is the latest unsuccessful variation of an ignore line that I've
tried, even though the egrep test matches all the lines that are
showing up in the logcheck mails.

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: \[[ 0-9.]+\] end_request: I.O error,
dev sr.*, sector.*$

$ egrep '^\w{3} [ :0-9]{11} [._[:alnum:]-]+ kernel: \[[ 0-9.]+\]
end_request: I.O error, dev sr.*, sector.*$' /var/log/syslog

[returns all the lines shown above]

Any suggestions?

Thanks,
Adam