// Module included in the following assemblies:
//
// * microshift_running applications/microshift-greenboot.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-greenboot-systemd-journal-data_{context}"]
= Enabling systemd journal service data persistency

The default configuration of the `systemd` journal service stores the data in the volatile `/run/log/journal` directory. To view system logs across system starts and restarts, you must enable log persistence and set limits on the maximal journal data size.

.Procedure

. Make the directory by running the following command:
+
[source,terminal]
----
$ sudo mkdir -p /etc/systemd/journald.conf.d
----

. Create the configuration file by running the following command:
+
[source,terminal]
----
cat <<EOF | sudo tee /etc/systemd/journald.conf.d/microshift.conf &>/dev/null
[Journal]
Storage=persistent
SystemMaxUse=1G
RuntimeMaxUse=1G
EOF
----

. Edit the configuration file values for your size requirements.
