A Linux administrator must forward all syslog messages via UDP to a remote log server at IP address 192.168.150.50. Which line should be added to /etc/rsyslog.conf (legacy syntax) to meet this requirement?
Using a single at-sign (@) before the destination tells rsyslog to send the selected messages over UDP. The selector . matches every facility and every priority, so the line . @192.168.150.50 forwards all logs to that host on the default UDP port 514. A double at-sign (@@) would switch the transport to TCP, while > is shell redirection and # begins a comment, so those lines would not achieve the stated goal.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is rsyslog and how does it work?
Open an interactive chat with Bash
What does the syntax ' *.* @192.168.150.50' mean?
Open an interactive chat with Bash
Why is the use of '@' important when configuring rsyslog for remote logging?