SV-280986r1184782_rule
V-280986
SRG-OS-000420-GPOS-00186
RHEL-10-200643
CAT II
10
Configure RHEL 10 to not receive remote logs using rsyslog.
Remove the lines in "/etc/rsyslog.conf" and any files in the "/etc/rsyslog.d" directory that match any of the following:
InputTCPServerRun
UDPServerRun
RELPServerRun
module(load="imtcp")
module(load="imudp")
module(load="imrelp")
input(type="imudp" port="514")
input(type="imtcp" port="514")
input(type="imrelp" port="514")
Restart the rsyslog daemon with the following command for the changes to take effect:
$ sudo systemctl restart rsyslog.service
Note: If the SA can demonstrate that another tool (e.g., SPLUNK) is being used to manage log off-load and aggregation in lieu of rsyslog, this check is not applicable.
Verify RHEL 10 is not configured to receive remote logs using rsyslog.
Verify the setting with the following commands:
$ ss -tulnp | grep rsyslog
If no output is returned, rsyslog is not listening for remote logs.
If output appears, check for configured ports (514 is the default for syslog).
Check for remote logging configuration in rsyslog by examining the rsyslog configuration files:
$ sudo grep -E 'InputTCPServerRun|UDPServerRun|RELPServerRun|imtcp|imudp|imrelp' /etc/rsyslog.conf /etc/rsyslog.d/*
If this command returns uncommented lines enabling network listeners, the system is accepting remote logs. If this system is not documented and authorized as a log aggregation server, this is a finding.
Note: An error about no files or directories from the above commands may be returned. This is not a finding. Additionally, if a port option used together with a target and protocol is returned from inside an action block, this is not a finding.
V-280986
False
RHEL-10-200643
Note: If the SA can demonstrate that another tool (e.g., SPLUNK) is being used to manage log off-load and aggregation in lieu of rsyslog, this check is not applicable.
Verify RHEL 10 is not configured to receive remote logs using rsyslog.
Verify the setting with the following commands:
$ ss -tulnp | grep rsyslog
If no output is returned, rsyslog is not listening for remote logs.
If output appears, check for configured ports (514 is the default for syslog).
Check for remote logging configuration in rsyslog by examining the rsyslog configuration files:
$ sudo grep -E 'InputTCPServerRun|UDPServerRun|RELPServerRun|imtcp|imudp|imrelp' /etc/rsyslog.conf /etc/rsyslog.d/*
If this command returns uncommented lines enabling network listeners, the system is accepting remote logs. If this system is not documented and authorized as a log aggregation server, this is a finding.
Note: An error about no files or directories from the above commands may be returned. This is not a finding. Additionally, if a port option used together with a target and protocol is returned from inside an action block, this is not a finding.
M
5733