SV-219555r603263_rule
V-219555
SRG-OS-000342
OL6-00-000137
CAT II
10
To configure rsyslog to send logs to a remote log server, open "/etc/rsyslog.conf" and read and understand the last section of the file, which describes the multiple directives necessary to activate remote logging. Along with these other directives, the system can be configured to forward its logs to a particular log server by adding or correcting one of the following lines, substituting "[loghost.example.com]" appropriately. The choice of protocol depends on the environment of the system; although TCP and RELP provide more reliable message delivery, they may not be supported in all environments.
To use UDP for log message delivery:
*.* @[loghost.example.com]
To use TCP for log message delivery:
*.* @@[loghost.example.com]
To use RELP for log message delivery:
*.* :omrelp:[loghost.example.com]
To ensure logs are sent to a remote host, examine the file "/etc/rsyslog.conf". If using UDP, a line similar to the following should be present:
*.* @[loghost.example.com]
If using TCP, a line similar to the following should be present:
*.* @@[loghost.example.com]
If using RELP, a line similar to the following should be present:
*.* :omrelp:[loghost.example.com]
If none of these are present, this is a finding.
V-219555
False
OL6-00-000137
To ensure logs are sent to a remote host, examine the file "/etc/rsyslog.conf". If using UDP, a line similar to the following should be present:
*.* @[loghost.example.com]
If using TCP, a line similar to the following should be present:
*.* @@[loghost.example.com]
If using RELP, a line similar to the following should be present:
*.* :omrelp:[loghost.example.com]
If none of these are present, this is a finding.
M
2928