Ravi Sir's Cards › AWS
journalctl vs /var/log files
This comparison card contrasts journalctl and /var/log files. journalctl is described as binary indexed journal. /var/log files is described as plain text via rsyslog. The card pairs journalctl with debugging services, and /var/log files with old tools, shipping logs.
Read card text
What this card says
Storage
journalctl
Binary indexed journal.
/var/log files
Plain text via rsyslog.
Key points
Rich filters by unit, time.
Works with grep and tail.
Example
journalctl -u nginx
Use when
Debugging services.
Old tools, shipping logs.