TMAegisBêta
Plus de règles pour linux

Linux distributions

TMA-ALINUX2-4.2.1.4

Ensure rsyslog is configured to send logs to a remote log host

MoyenneNiveau 1Automatiséelinux

Description

The rsyslog utility supports the ability to send logs it gathers to a remote log host running syslogd(8) or to receive messages from remote hosts, reducing administrative overhead.

Méthode de vérification

Méthode d'audit: Commande shell

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep "^*.*[^I][^I]*@" /etc/rsyslog.conf /etc/rsyslog.d/*.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- '*.* @@loghost.example.com' || { echo step1: missing '*.* @@loghost.example.com'; return 1; }; }; if alt0; then echo compliant; fi
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Edit the /etc/rsyslog.conf and /etc/rsyslog.d/*.conf files and add the following line (where loghost.example.com is the name of your central log host). *.* @@loghost.example.com Run the following command to reload the rsyslogd configuration: # pkill -HUP rsyslogd

Propriétés

Systèmes d'exploitation
alinux-2
Étiquettes
cis-convertedlinux
Référence
CIS Aliyun Linux 2 Benchmark v1.0.0 ARCHIVE - 4.2.1.4

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target linux