Skip to content

Ensure the logging collector is enabled


The logging collector is a background process that captures log messages sent to stderr and redirects them into log files. The logging_collector setting must be enabled in order for this process to run. It can only be set at server start.


The logging collector approach is often more useful than logging to syslog, since some types of messages might not appear in syslog output. One common example is dynamic- linker failure message; another may be error messages produced by scripts such as archive_command.

Note: This setting must be enabled when log_destination is either 'stderr' or 'csvlog' and for certain other logging parameters to take effect.

Applies To

  • Databases


This rule is applied when the following tags are present:

Tag With Value
secureclouddb/provider aws
secureclouddb/service rds
secureclouddb/engine postgres

Default Rule

const { checkServerSetting } = module

 * @param {Object} databaseSettings - database settings object
 * @returns {boolean} true if the logging collector is enabled
function validate(databaseSettings) {

    const settingName = 'logging_collector'
    const expectedValue = 'on'
    const success = checkServerSetting(databaseSettings, settingName, expectedValue)

    return {

// invoke