Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Created July 28, 2023 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save budiantoip/c59c1607d1e7a6552cf7296119865d00 to your computer and use it in GitHub Desktop.
Save budiantoip/c59c1607d1e7a6552cf7296119865d00 to your computer and use it in GitHub Desktop.
journalctl

journalctl log files default location

/run/log/journal

How to move default location to /var/log/journal

sudo mkdir -p /var/log/journal
sudo systemd-tmpfiles --create --prefix /var/log/journal

logrotate the log file

sudo journalctl --vacuum-size=200M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment