# config to log everything logged to rsyslog to a separate file :msg, contains, "string:/" /var/log/custom-log.log :msg, contains, "string:/" ~