journalctl

To see systemd logs, run

journalctl -f

To see a service specific logs (example postfix)

journalctl -f -u postfix

To see logs for a specific service, run

journalctl --unit apache2

Logs with out pagination

journalctl --no-pager -u nginx
journalctl -u lxc-net.service -n 30

Change Disk used by journald

Modify file

vi /etc/systemd/journald.conf

Set disk usage limit by modifying value of SystemMaxUse

SystemMaxUse=500M

to free up disk,run

journalctl --vacuum-size=500M

See systemd

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *