WP_FAIL2BAN_USE_LOG_USER

Use the LOG_USER facility.

WP_FAIL2BAN_USE_LOG_USER ::= true | false | LOG_LOCAL0..LOG_LOCAL7

Default setting: false


Specifies whether to use the LOG_USER facility instead of mapping to LOG_AUTHPRIV. Prior to v6.0.0, this was effectively always true.

Example: Use LOG_USER
/**
 * Use LOG_USER instead of LOG_AUTHPRIV
 */
define('WP_FAIL2BAN_USE_LOG_USER', true);

You can also map this to a different facility:

Example: Use LOG_LOCAL5
/**
 * Use LOG_LOCAL5 instead of LOG_USER
 */
define('WP_FAIL2BAN_USE_LOG_USER', LOG_LOCAL5);

Note

This only affects the default facility - it does not override facilities specified by other constants.

History

Added in version 6.0.0.