Skip to content
Discussion options

You must be logged in to vote

Using hl with journalctl

hl is designed to work seamlessly with journalctl for viewing and analyzing systemd journal logs in a human-readable format.

Basic Usage

The most straightforward way to use hl with journalctl is to pipe the output:

journalctl -o json -a | hl

Important:

  • Use the -o json option with journalctl to output logs in JSON format, which hl can parse and display beautifully.
  • Use the -a (or --all) flag to show all fields in full, without truncating long messages or field values.

Common Use Cases

1. View Recent System Logs

journalctl -o json -a -n 100 | hl

Shows the last 100 log entries in a readable format.

2. Follow Live Logs (Streaming)

journalctl -o json -a -f | hl -P
  • -f

Replies: 1 comment

Comment options

pamburus
Feb 15, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by pamburus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant