Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust journald rules for RHEL 10 #12754

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ocil: |-
Storing logs with compression can help avoid filling the system disk.
Run the following command to verify that journald is compressing logs.
<pre>
{{%- if product in ["fedora", "rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["fedora", "sle15"] or "rhel" in product %}}
grep "^\sCompress" /etc/systemd/journald.conf {{{ journald_conf_dir_path }}}/*.conf
{{% else %}}
grep "^\sCompress" /etc/systemd/journald.conf
Expand All @@ -45,7 +45,7 @@ ocil: |-
Compress=yes
</pre>

{{%- if product in ["fedora", "rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["fedora", "sle15"] or "rhel" in product %}}
template:
name: systemd_dropin_configuration
vars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ocil: |-
Storing logs remotely protects the integrity of the data from local attacks.
Run the following command to verify that journald is forwarding logs to a remote host.
<pre>
{{%- if product in ["rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["sle15"] or "rhel" in product %}}
grep "^\sForwardToSyslog" /etc/systemd/journald.conf {{{ journald_conf_dir_path }}}/*.conf
{{% else %}}
grep "^\sForwardToSyslog" /etc/systemd/journald.conf
Expand All @@ -44,7 +44,7 @@ ocil: |-
ForwardToSyslog=yes
</pre>

{{%- if product in ["rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["sle15"] or "rhel" in product %}}
template:
name: systemd_dropin_configuration
vars:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ocil: |-
Storing logs with persistent storage ensures they are available after a reboot or system crash.
Run the command below to verify that logs are being persistently stored to disk.
<pre>
{{%- if product in ["fedora", "rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["fedora", "sle15"] or "rhel" in product %}}
grep "^\sStorage" /etc/systemd/journald.conf {{{ journald_conf_dir_path }}}/*.conf
{{% else %}}
grep "^\sStorage" /etc/systemd/journald.conf
Expand All @@ -44,7 +44,7 @@ ocil: |-
Storage=persistent
</pre>

{{%- if product in ["fedora", "rhel8", "rhel9", "sle15"] %}}
{{%- if product in ["fedora", "sle15"] or "rhel" in product %}}
template:
name: systemd_dropin_configuration
vars:
Expand Down
Loading