If, like me, you're a big fan of logcheck, and you are using backup-manager to backup and upload your data on a distant server, you may have noticed that logcheck will warn you everyday about Info statements in the log files :
To remove info-level alerts regarding backup-manager, you can create a file
/etc/logcheck/ignore.d.server/backup-managercontening :
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ backup-manager(-purge|-upload)?\[[0-9]+\]: info[[:blank:]]*\*.*$
This will filter all info-level output. If you want to filter also the warn entries (not recommended) :
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ backup-manager(-purge|-upload)?\[[0-9]+\]: (info|warn)[[:blank:]]*\*.*$UPDATE FOR DEBIAN LENNY :
Sounds like default loglevel is set to DEBUG, and I don't know where to change that, so let's ignore the line in logcheck :
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ backup-manager(-purge|-upload)?\[[0-9]+\]: (info|debug)[[:blank:]]*\*.*$
Note : I prefer to remove alerts on these lines to remove the lines from the logs. In case of problem, I can check system.log for debug information.
0 comments:
Post a Comment