TMAegis
bottlerocket のその他のルール

TMA-BOTTLEROCKET-4.1.1.1

Ensure journald is configured to write logs to persistent disk

中レベル 1自動bottlerocket

説明

Data from the journal may be stored in volatile memory or persisted locally on the server. Logs in memory will be lost upon a system reboot. By persisting logs to local disk on the server they are protected from loss. The audit requires Storage=persistent in /usr/lib/systemd/journald.conf.d/journald.conf. Run tmaegis on the host through the admin container root shell (sudo sheltie).

チェック方法

監査方法: シェルコマンド

shell
f=/usr/lib/systemd/journald.conf.d/journald.conf
[ -r "$f" ] || exit 1
grep -Eq '^[[:space:]]*Storage=persistent[[:space:]]*$' "$f" && echo compliant || echo "Storage=persistent not set in $f"
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

Update to a version of the OS with the correct journald configuration.

プロパティ

オペレーティングシステム
すべて
タグ
bottlerocketlogging
参照
CIS Bottlerocket Benchmark v1.0.0 - 4.1.1.1 Ensure journald is configured to write logs to persistent disk

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target bottlerocket