Facilities

On Unix systems that provide it, the shipped default is LOG_AUTHPRIV for both the authentication and user facility families. WP_FAIL2BAN_USE_LOG_AUTH can select LOG_AUTH or a local facility for the authentication family; WP_FAIL2BAN_USE_LOG_USER can make the user family use LOG_USER or a local facility instead. Individual channel constants can also select a facility listed below.

The syslog daemon’s own rules determine whether a priority is retained for a facility. In particular, some ordinary configurations do not retain Info messages sent to LOG_USER.

The syslog daemon determines which file receives each facility. Ensure the fail2ban jail reads the same destination; see Logging and observing activity for the logging model and Configuring fail2ban for jail setup.

Facility

Description

LOG_AUTH

security/authorization messages (use LOG_AUTHPRIV instead in systems where that constant is defined)

LOG_AUTHPRIV

security/authorization messages (private)

LOG_CRON

clock daemon (cron and at)

LOG_DAEMON

other system daemons

LOG_KERN

kernel messages

LOG_LOCAL0…7

reserved for local use, these are not available in Windows

LOG_LPR

line printer subsystem

LOG_MAIL

mail subsystem

LOG_NEWS

USENET news subsystem

LOG_SYSLOG

messages generated internally by syslogd

LOG_USER

generic user-level messages

LOG_UUCP

UUCP subsystem

Default Facilities

Free

Premium

The Premium table shows the complete Premium defaults, including the Free channels that Premium inherits.