Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
Forked from MrAndrewMal/journalctl.txt
Last active August 12, 2023 21:23
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 BjoernSchilberg/dd4314ddd49493d5d5a89e37a26d3e2b to your computer and use it in GitHub Desktop.
Save BjoernSchilberg/dd4314ddd49493d5d5a89e37a26d3e2b to your computer and use it in GitHub Desktop.
How to read live-tail logs of multiple services with journalctl
#Systemd - How to read live-tail logs of multiple services with journalctl
sudo journalctl --follow _SYSTEMD_UNIT=docker.service + _SYSTEMD_UNIT=apache2.service
Hint:
https://serverfault.com/questions/805775/journalctl-how-to-display-colors-in-its-output/893763#893763
If the original daemon output is already colorized, but the colors are being lost when using journalctl, the `--output cat` option will restore them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment