Linux distributions
TMA-RHEL10-6.2.2.1.3
Ensure systemd-journal-upload is enabled and active
OrtaDüzey 1Otomatiklinux
Açıklama
Journald systemd-journal-upload supports the ability to send log events it gathers to a remote log host.
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled systemd-journal-upload.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- enabled || { echo step1: missing enabled; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step2: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active systemd-journal-upload.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- active || { echo step2: missing active; return 1; }; }; if alt0; then echo compliant; fi- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
Run the following commands to unmask, enable and start systemd-journal-upload: # systemctl unmask systemd-journal-upload.service # systemctl --now enable systemd-journal-upload.service
Özellikler
- İşletim sistemleri
- rhel-10
- Etiketler
- cis-convertedlinux
- Referans
- CIS Red Hat Enterprise Linux 10 Benchmark v1.0.1 - 6.2.2.1.3
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target linux