From Fedora Project Wiki
Description
This article is incomplete. Remote logging happens when the operating system logs events and errors to a different machine (server) over the network. This test case shows whether remote logging can be set up in a Fedora Server environment using system packages available after the installation.
How to test
- Run the default installation of Fedora Server on two different machines, either bare metal or virtual.
- When the systems are installed, check the following steps (3 and 4) on both machines.
- Check that
rsyslog
is installed on both machines.rpm -qi rsyslog
- Check that the
rsyslog.service
is up and running.systemctl status rsyslog.service
- If not, enable the service and start it.
systemctl enable rsyslog.service
systemctl start rsyslog.service
- On the server, edit the
/etc/rsyslog.conf
file.vi /etc/rsyslog.conf
- In the file, uncomment the following lines:
module(load="imudp")
input(type="imudp" port="514")
- On the server, open the UDP port 514 for incoming traffic.
firewall-cmd --permanent --add-port=514/udp
firewall-cmd --reload
- On the server, restart the
rsyslog.service
.systemctl restart rsyslog.service
- On the server, display the
/var/log/messages
so that it continues in the console.tail -f /var/log/messages
Expected Results
The following must be true to consider this a successful test run. Be brief ... but explicit.
- Step #1 completes without error
- The system boots into runlevel 5
- Program completes with exit code 0
Optional
Optionally provide hints for exploratory testing.