Created
March 2, 2018 04:06
-
-
Save deoren/52a5319f4cb0bf7a537d7f4bc6736263 to your computer and use it in GitHub Desktop.
Rsyslog - Prosody conf fragment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Catch log messages generated by the Prosody daemon | |
if $programname == 'prosody' then { | |
# Skip logging of SASL AUTH log entries (base64 encoded username/passwords) | |
# Note: recent updates to the mod_auth_dovecot module likely make | |
# this unnecessary, but I left it in to protect against regressions | |
if $msg contains ":auth_dovecot: sending" then { | |
stop | |
} | |
else { | |
# Debug mode is enabled in the Prosody config, so since we're not filtering | |
# further at this point all of those entries will go here | |
action(type="omfile" file="/var/log/prosody-debug.log") | |
# Catch all severity levels 6 and lower along with Resource bound messages | |
# and place them in the general prosody log file | |
if $syslogseverity <= 6 or $msg contains 'Resource bound:' then { | |
action(type="omfile" file="/var/log/prosody.log") | |
} | |
stop | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!