journalctl

# Follow postfix mail log with 40 records loaded on start
journalctl -f -u postfix@-.service -n 40

# Get one day old records
journalctl -u postfix@-.service --since "1 days ago"

# Get first 100 records since
journalctl --since "2026-03-27 07:00:00" --no-pager | head -100

Leave a Reply

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