WP_FAIL2BAN_USING_JOURNALD

Configure journald installation detection.

Default setting: not set


Overrides whether WPf2b considers journald active. When the constant is not set, WPf2b automatically checks the local systemd and journal-syslog state. Boolean true forces the detected state to active; boolean false disables it.

A string value also forces the state to active, but its contents are not opened or used as a local or remote destination. This constant does not select a transport: WPf2b continues to write through PHP’s ordinary openlog()/syslog() functions.

Example: Force journald detection active
define('WP_FAIL2BAN_USING_JOURNALD', true);

You can also explicitly disable journald detection:

Example: Disable journald detection
define('WP_FAIL2BAN_USING_JOURNALD', false);

History

Added in version 6.0.0.