Debug logging with systemd-resolved

Published: 23 September 2022

Note: this article is old and may contain outdated or incorrect information.

  1. Add an override. sudo systemctl edit systemd-resolved
[Service]
Environment=SYSTEMD_LOG_LEVEL=debug
  1. Make changes active. sudo systemctl restart systemd-resolved
  2. View logs. journalctl -u systemd-resolved -f

And when you're done, undo all these changes.

sudo systemctl revert systemd-resolved
sudo systemctl restart systemd-resolved`

Tags:

  • systemd
  • logging
Related Memos: