Choose the syslog facility for sensitive authentication and authorization records.
Which facility is appropriate?
authpriv is intended for authentication-related logs whose access should be restricted.
Detailed explanation
authprivCorrect. authpriv is for sensitive authentication-related messages.
kernIncorrect. kern is for kernel messages.
mailIncorrect. mail is for mail-system messages.
local0Incorrect. local0 is a locally assigned facility, not specifically authentication.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' authpriv kern mail local0Expected result
4つのfacility名Key points
- Facility classifies source
- authpriv is authentication
- Different from priority
Notes
- Environment: printf / 設定変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Syslog facility and priority
Metadata that classifies a message source and its severity.
Journal persistence
Whether systemd journal data survives a reboot and where it is stored.
Log rotation
A process that retains, renames, compresses, or removes log generations.