2

When configuring persistent system journals, after restarting systemd-journald /var/log/journal folder didn't create.

I did following steps:

  1. become root
  2. edited and saved /etc/systemd/journald.conf with the changes
 [Journal] Storage=persistent 
  1. restarted systemd-journald service

and no folder created with the name /var/log/journal.

What can I do here or can I copy the folder in /run/log/journal to the destination where it must be?

4
  • What does systemctl status systemd-journald say? Commented Jul 3, 2021 at 23:58
  • 1
    Rather than setting Storage=persistent, it is sufficient to leave it at Storage=auto and mkdir /var/log/journal. The journal will then be copied to this directory in a few seconds. Commented Jul 4, 2021 at 7:23
  • .... Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled) Active: active (running) since Sun 2021-07-04 03:45:39 +04; 9h ago ......... Commented Jul 4, 2021 at 9:16
  • yes, it worked as u said, I kept Storage=auto as it is, and then mkdir.. thus it worked fine Commented Jul 4, 2021 at 9:19

1 Answer 1

3

When switching from volatile to persistent, I had to issue journalctl --flush to make journald switch over to the new logging location.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.