Skip to content

Enable systemd-journal-upload Service

An XCCDF Rule

Description

SUSE Linux Enterprise Micro 5 must offload rsyslog messages for networked systems in real time and offload standalone systems at least weekly. The systemd-journal-upload service can be enabled with the following command:
$ sudo systemctl enable systemd-journal-upload.service

Rationale

SUSE Linux Enterprise Micro 5 must offload rsyslog messages for networked systems in real time and offload standalone systems at least weekly.

ID
xccdf_org.ssgproject.content_rule_service_systemd-journal-upload_enabled
Severity
Medium
References
Updated

Remediation Templates

OS Build Blueprint

[customizations.services]
enabled = ["systemd-journal-upload"]

A Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default && { [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; }; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'systemd-journal-upload.service'
"$SYSTEMCTL_EXEC" start 'systemd-journal-upload.service'
"$SYSTEMCTL_EXEC" enable 'systemd-journal-upload.service'

A Puppet Snippet

include enable_systemd-journal-upload
class enable_systemd-journal-upload {
  service {'systemd-journal-upload':
    enable => true,
    ensure => 'running',
  }
}

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-94084-1
  - DISA-STIG-SLEM-05-652010