TMAegis
More rules for linux

Linux distributions

TMA-ROCKY8-6.2.1.1.1

Ensure journald service is active

MediumLevel 1Automatedlinux

Description

Ensure that the systemd-journald service is enabled to allow capturing of logging events.

How it is checked

Audit method: Shell command

shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active systemd-journald.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- active || { echo step1: missing active; return 1; }; }; if alt0; then echo compliant; fi
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Run the following commands to unmask, enable, and start systemd- journald.service # systemctl unmask systemd-journald.service # systemctl --now enable systemd-journald.service

Properties

Operating systems
rocky-8
Tags
cis-convertedlinux
Reference
CIS Rocky Linux 8 Benchmark v3.0.0 - 6.2.1.1.1

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target linux