8

(for an Arch Linux system) Is it possible to change the storage location of the system journal to a specific directory?

sourcejedi
  • 48,311
  • 17
  • 143
  • 296
Amr Bekhit
  • 643
  • 2
  • 10
  • 17
  • Does this answer your question? [Can be the journal path on a filesystem other than /?](https://unix.stackexchange.com/questions/506998/can-be-the-journal-path-on-a-filesystem-other-than) – bain May 31 '23 at 21:31

1 Answers1

7

Assuming you mean the location that journald writes to, I think not. The configuration file for journald is /etc/systemd/journald.conf, and the documentation for it doesn't list a way to choose locations. You might be able to work around it by making /var/log/journal a link to somewhere else, or mount something on that directory.

muru
  • 69,900
  • 13
  • 192
  • 292
  • Has this change at all since 2014? - I have this problem where my root filesystem is small and out of space and I need to move my journald to /data/ – Hackeron Feb 15 '22 at 13:20
  • I don't think so. The linked page is always for the latest version of systemd, and it still doesn't show any relevant option. I think your best option is still to mount something on `/var/log/journal` or its parent directories. – muru Feb 15 '22 at 14:43