local0–local7are custom (user-defined) syslog facilities.- They allow applications to send logs to a distinct syslog channel.
Configuration
- rsyslog:
/etc/rsyslog.confor files under/etc/rsyslog.d/.
local2.* /var/log/haproxy.log
- to route
local2into a dedicated file.
Default Log Locations
- Red Hat/CentOS/Rocky Linux:
- By default, custom facility logs go to
/var/log/messagesunless otherwise configured.
- By default, custom facility logs go to
- Debian/Ubuntu:
- By default, they go to
/var/log/syslogunless otherwise configured.
- By default, they go to