Logcheck rules for seafile server running linux with systemd


#1

I’m using logcheck for notifications if anything unknown appears in my logfiles. Every restart of the seafile server produces several messages. If anyone else is using logcheck, here are my ignore-rules for seafile:

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sea(file|hub)\.sh\[[0-9]+\]: Stopping (seafile server|seahub) \.\.\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sea(file|hub)\.sh\[[0-9]+\]: Done\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sea(file|hub)\.sh\[[0-9]+\]: Sea(file|hub) (server|is) started$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ seafile\.sh\[[0-9]+\]: Starting seafile server, please wait \.\.\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ seahub\.sh\[[0-9]+\]: Starting seahub at port [0-9]{1,5} \.\.\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ seahub\.sh\[[0-9]+\]: (LANG|LC_ALL) is not set in ENV, set to en_US.UTF-8$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ seafile\.sh\[[0-9]+\]: \[[ :0-9\/]{17}\] \.\.\/common\/session\.c\([0-9]+\): using config file [[:alnum:]\/]+ccnet\.conf

This code is licensed under the WTFPL without any warranty. Have fun with it! :wink: