Skip to content

Ensure rsyslog is Installed

An XCCDF Rule

Description

Rsyslog is installed by default. The rsyslog package can be installed with the following command:

 $ sudo yum install rsyslog

Rationale

The rsyslog package provides the rsyslog daemon, which provides system logging services.

ID
xccdf_org.ssgproject.content_rule_package_rsyslog_installed
Severity
Medium
References
Updated



Remediation - Puppet

include install_rsyslog

class install_rsyslog {
  package { 'rsyslog':
    ensure => 'installed',
  }

Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-80847-7
  - DISA-STIG-RHEL-08-030670

Remediation - script:kickstart


package install rsyslog

Remediation - OS Build Blueprint


[[packages]]
name = "rsyslog"
version = "*"

Remediation - script:bootc


dnf install rsyslog

Remediation - Anaconda Pre-Install Instructions


package --add=rsyslog

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then

if ! rpm -q --quiet "rsyslog" ; then
    yum install -y "rsyslog"
fi