baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

[Debian] Install logcheck rules #358

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The default log settings in 1nightly156-1~precise are
log = {
    info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
    error = "/var/log/prosody/prosody.err";
    "*syslog";
}

I suggest adjusting them to:

log = {
    info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
    error = "/var/log/prosody/prosody.err";
    warn = "*syslog";
}

To prevent syslog from being flooded, if a user really wants debug messages 
going to syslog then they can change the config file.

Original issue reported on code.google.com by ad...@rwky.net on 20 Aug 2013 at 1:51

GoogleCodeExporter commented 9 years ago
Part of the reasoning behind the current config is that syslog has its own 
filtering, which is probably more efficient (logging and filtering is syslog's 
whole purpose in life, after all).

Indeed, most standard syslog configs already filter out low priority log 
messages into /var/log/debug already.

Original comment by MWild1 on 20 Aug 2013 at 4:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That sounds like a great idea. I have no experience with logcheck, but if you 
can provide some rules to ignore info and lower from Prosody, I'd be happy to 
include it in our packages.

Original comment by MWild1 on 23 Aug 2013 at 9:40

GoogleCodeExporter commented 9 years ago
Ok I'll take a few days to collect the log entries that need to be omitted. 
I'll attach the file here when done.

Original comment by ad...@rwky.net on 23 Aug 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Ok logcheck file attached I've ran this on my production server for a few days 
and it seems to filter everything that's common and doesn't require much 
attention. You can add it to the deb package script with dh_installlogcheck 
http://manpages.ubuntu.com/manpages/precise/en/man1/dh_installlogcheck.1.html

Original comment by ad...@rwky.net on 28 Aug 2013 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
Many thanks! I'll add this when I'm next working on packages.

Original comment by MWild1 on 28 Aug 2013 at 7:00