Troubleshooting

An administrator must forward all authentication messages from a server to a central log host at loghost.example.com. The transfer must use TCP on port 514 so messages are not silently lost. Which rsyslog rule meets this requirement?

Show the answer

Correct answerA. authpriv.* @@loghost.example.com:514

In rsyslog's legacy syntax, a double @@ sends to the remote host over TCP, and authpriv is the facility for authentication messages. A single @ uses UDP, which gives no delivery guarantee. The mail facility would forward the wrong messages.