How to change the stored directory of systemd-journal log files.
by Andy.liu from LinuxQuestions.org on (#6FKGJ)
I need a logging system for error debugging and tracing with systemd-journal. As I known, the option of journal.conf file can be configurated log stored path, as following shows,
Storage=persistent, log files will store '/var/log/journal', on disk.
Storage=volatile, log files will store '/run/log/journal', on RAM.
I would like to the Storage=persistent option but want to store log files on disk with another path, such as '/usr/log/journal' with permissions.
If you have any idea or better way, please kindly share, thanks.
Storage=persistent, log files will store '/var/log/journal', on disk.
Storage=volatile, log files will store '/run/log/journal', on RAM.
I would like to the Storage=persistent option but want to store log files on disk with another path, such as '/usr/log/journal' with permissions.
If you have any idea or better way, please kindly share, thanks.