Ravi Sir's Cards › AWS
tail vs journalctl
This comparison card contrasts tail and journalctl. tail is described as reads a text log file. journalctl is described as reads the systemd journal. The card pairs tail with app writes to a file, and journalctl with service logs to journal.
Read card text
What this card says
Logs
tail
Reads a text log file.
journalctl
Reads the systemd journal.
Key points
-F follows rotation.
-u filters a service.
Example
tail -F /var/log/app.log
Use when
App writes to a file.
Service logs to journal.